fix clang-tidy warnings

This commit is contained in:
Eyck Jentzsch 2021-07-27 12:57:47 +02:00
parent f2b998a09d
commit d63abbd94f

View File

@ -86,19 +86,19 @@ public:
wait(HCLK.posedge_event()); wait(HCLK.posedge_event());
HSEL.write(true); HSEL.write(true);
tlm::tlm_generic_payload gp; tlm::tlm_generic_payload gp;
uint8_t data[8]; std::array<uint8_t, 8> data;
data[0]=2; data[0]=2;
data[1]=4; data[1]=4;
gp.set_address(0x1000); gp.set_address(0x1000);
gp.set_data_length(8); gp.set_data_length(8);
gp.set_data_ptr(data); gp.set_data_ptr(data.data());
gp.set_streaming_width(8); gp.set_streaming_width(8);
gp.set_command(tlm::TLM_WRITE_COMMAND); gp.set_command(tlm::TLM_WRITE_COMMAND);
sc_time delay; sc_time delay;
isck->b_transport(gp, delay); isck->b_transport(gp, delay);
gp.set_address(0x1020); gp.set_address(0x1020);
gp.set_data_length(8); gp.set_data_length(8);
gp.set_data_ptr(data); gp.set_data_ptr(data.data());
gp.set_streaming_width(8); gp.set_streaming_width(8);
gp.set_command(tlm::TLM_READ_COMMAND); gp.set_command(tlm::TLM_READ_COMMAND);
delay=SC_ZERO_TIME; delay=SC_ZERO_TIME;