3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-27 19:05:52 +00:00

ast/simplify: don't bitblast async ROMs declared as logic.

Fixes #2020.
This commit is contained in:
whitequark 2020-05-05 04:11:16 +00:00
parent d1c8837572
commit 66d0ed2bcc
3 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,6 @@
module top(input [3:0] addr, output [7:0] data);
logic [7:0] mem[0:15];
assign data = mem[addr];
integer i;
initial for(i = 0; i < 16; i = i + 1) mem[i] = i;
endmodule

View file

@ -0,0 +1,3 @@
read_verilog -sv logic_rom.sv
prep -top top
select -assert-count 1 t:$mem r:SIZE=16 %i r:WIDTH=8 %i