chipsalliance / UHDM-integration-tests

Apache License 2.0
30 stars 8 forks source link

swerv: ifu_iccm_mem doesn't work in Verilator #538

Open RRozak opened 3 years ago

RRozak commented 3 years ago

I created the test: https://github.com/chipsalliance/UHDM-integration-tests/pull/537 It gives warnings:

%Warning-SELRANGE: swerv/design/ifu/ifu_iccm_mem.sv:132:62: Extracting 6084 bits from only 78 bit number
%Warning-SELRANGE: swerv/design/ifu/ifu_iccm_mem.sv:132:119: Extracting 6084 bits from only 78 bit number

%Warning-WIDTH: swerv/design/ifu/ifu_iccm_mem.sv:131:33: Operator COND expects 12168 bits on the Conditional True, but Conditional True's REPLICATE generates 156 bits.
%Warning-WIDTH: swerv/design/ifu/ifu_iccm_mem.sv:132:11: Operator ASSIGNW expects 156 bits on the Assign RHS, but Assign RHS's COND generates 12168 bits.

%Warning-SELRANGE: swerv/design/ifu/ifu_iccm_mem.sv:132:62: Selection index out of range: 80:2 outside 4:0
%Warning-SELRANGE: swerv/design/ifu/ifu_iccm_mem.sv:132:119: Selection index out of range: 80:2 outside 4:0
RRozak commented 3 years ago

https://github.com/chipsalliance/UHDM-integration-tests/pull/539 reproduces all 3 kinds of these warnings.

RRozak commented 3 years ago

It is blocked by https://github.com/chipsalliance/Surelog/issues/2032