mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Add check at constmap and merge test
This commit is contained in:
parent
414dc85573
commit
81f3369f24
2 changed files with 31 additions and 27 deletions
|
@ -9,8 +9,7 @@ endmodule
|
|||
EOT
|
||||
|
||||
constmap -cell const_cell O value
|
||||
select -assert-count 1 t:const_cell
|
||||
select -assert-count 1 r:value=16
|
||||
select -assert-count 1 t:const_cell r:value=16 %i
|
||||
|
||||
design -reset
|
||||
|
||||
|
@ -42,22 +41,3 @@ select -assert-count 1 test/out1 %ci* r:value=16 %i
|
|||
select -assert-count 1 test/out2 %ci* r:value=32 %i
|
||||
select -assert-count 1 t:const_cell r:value=16 %i
|
||||
select -assert-count 1 t:const_cell r:value=32 %i
|
||||
|
||||
design -reset
|
||||
|
||||
read_verilog << EOT
|
||||
|
||||
module test();
|
||||
wire [31:0] in;
|
||||
wire [31:0] out1;
|
||||
wire [31:0] out2;
|
||||
assign out1 = in + 16;
|
||||
assign out2 = in + 32;
|
||||
endmodule
|
||||
|
||||
EOT
|
||||
|
||||
constmap -cell const_cell O value
|
||||
|
||||
select -assert-count 1 t:const_cell r:value=16 %i
|
||||
select -assert-count 1 t:const_cell r:value=32 %i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue