chipsalliance / UHDM-integration-tests

Apache License 2.0
30 stars 8 forks source link

Earlgrey: newest prim_sram_arbiter doesn't work in Verilator #507

Closed rkapuscik closed 3 years ago

rkapuscik commented 3 years ago

After updating Opentitan to newest version, prim_sram_arbiter.sv is failing with:

/media/hdd/uhdm/uhdm-integration/verilator/uhdm-integration/tests/opentitan/module_tests/prim_sram_arbiter/main.cpp: In function ‘int main(int, char**)’:
/media/hdd/uhdm/uhdm-integration/verilator/uhdm-integration/tests/opentitan/module_tests/prim_sram_arbiter/main.cpp:45:25: error: invalid types ‘CData {aka unsigned char}[int]’ for array subscript
   45 |       top->req_write_i[0] = 1;
      |                         ^
/media/hdd/uhdm/uhdm-integration/verilator/uhdm-integration/tests/opentitan/module_tests/prim_sram_arbiter/main.cpp:49:25: error: invalid types ‘CData {aka unsigned char}[int]’ for array subscript
   49 |       top->req_write_i[0] = 0;
      |                         ^
/media/hdd/uhdm/uhdm-integration/verilator/uhdm-integration/tests/opentitan/module_tests/prim_sram_arbiter/main.cpp:58:25: error: invalid types ‘CData {aka unsigned char}[int]’ for array subscript
   58 |       top->req_write_i[3] = 1;
      |                         ^
RRozak commented 3 years ago

https://github.com/chipsalliance/UHDM-integration-tests/pull/520 fixes it