3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-11 03:33:36 +00:00

Add extra test

This commit is contained in:
Kelvin Chung 2025-03-26 22:24:41 +00:00
parent 7bbdf6049a
commit a0dabf9203

View file

@ -13,6 +13,13 @@ select -assert-count 1 t:const_cell
select -assert-count 1 r:value=16
design -reset
read_verilog -lib << EOT
module const_cell(O);
output O;
endmodule
EOT
read_verilog << EOT
module test();
@ -29,3 +36,5 @@ constmap -cell const_cell O value
select -assert-count 2 t:const_cell
select -assert-count 1 r:value=16
select -assert-count 1 r:value=32
select -assert-count 1 test/out1 %ci* r:value=16 %i
select -assert-count 1 test/out2 %ci* r:value=32 %i