Closed MJoergen closed 3 years ago
If you look at the output of ghdl --synth --std=08 wbr_ram.vhdl -e
, you can see that the write first is correctly inferred.
So the issue is either within the plugin or later. Still investigating.
And indeed, RD_TRANSPARENT is always set to 0 in the plugin.
Should be fixed. Thank you for the issue.
When inferring a single-port RAM with
WRITE_FIRST
behaviour, formal verification fails in the assert statement. It is seen that the input to yosys is incorrect.The source file I'm using is:
The corresponding yosys script is:
To examine the input to yosys I execute the command
yosys -m ghdl -p 'ghdl --std=08 wbr_ram; dump'
. This generates almost 200 lines of output, but the lines I'm focused on are these (starting at line 67):In particular, the value of the parameter
RD_TRANSPARENT
seems incorrect. I believe it should be 1 and not 0.