mirror of https://github.com/YosysHQ/yosys.git
More testing
This commit is contained in:
parent
bfb8b3018b
commit
554c58715a
|
@ -24,5 +24,7 @@ module test2 (
|
||||||
`define T_rise 1
|
`define T_rise 1
|
||||||
`define T_fall 2
|
`define T_fall 2
|
||||||
(A => Q) = (`T_rise,`T_fall);
|
(A => Q) = (`T_rise,`T_fall);
|
||||||
|
//(B => Q) = (`T_rise+`T_fall)/2.0;
|
||||||
|
(B => Q) = 1.5;
|
||||||
endspecify
|
endspecify
|
||||||
endmodule
|
endmodule
|
||||||
|
|
|
@ -5,7 +5,7 @@ select t:$specify2 -assert-count 0
|
||||||
select t:$specify3 -assert-count 1
|
select t:$specify3 -assert-count 1
|
||||||
select t:$specrule -assert-count 2
|
select t:$specrule -assert-count 2
|
||||||
cd test2
|
cd test2
|
||||||
select t:$specify2 -assert-count 1
|
select t:$specify2 -assert-count 2
|
||||||
select t:$specify3 -assert-count 0
|
select t:$specify3 -assert-count 0
|
||||||
select t:$specrule -assert-count 0
|
select t:$specrule -assert-count 0
|
||||||
write_verilog specify.out
|
write_verilog specify.out
|
||||||
|
@ -17,9 +17,10 @@ select t:$specify2 -assert-count 0
|
||||||
select t:$specify3 -assert-count 1
|
select t:$specify3 -assert-count 1
|
||||||
select t:$specrule -assert-count 2
|
select t:$specrule -assert-count 2
|
||||||
cd test2
|
cd test2
|
||||||
select t:$specify2 -assert-count 1
|
select t:$specify2 -assert-count 2
|
||||||
select t:$specify3 -assert-count 0
|
select t:$specify3 -assert-count 0
|
||||||
select t:$specrule -assert-count 0
|
select t:$specrule -assert-count 0
|
||||||
design -stash gate
|
design -stash gate
|
||||||
|
|
||||||
# TODO: How to check $specify and $specrule-s are equivalent?
|
# TODO: How to check $specify and $specrule-s are equivalent?
|
||||||
|
# Otherwise, need more select statements to check parameter values are as expected?
|
||||||
|
|
Loading…
Reference in New Issue