mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Fix.
This commit is contained in:
@@ -21,17 +21,6 @@ check -nolatches -assert
|
|||||||
|
|
||||||
design -reset
|
design -reset
|
||||||
|
|
||||||
read_verilog <<EOT
|
|
||||||
module top(input g, rn, d, output reg q);
|
|
||||||
always @* if (~rn) q <= 0; else if (g) q <= d;
|
|
||||||
endmodule
|
|
||||||
EOT
|
|
||||||
proc
|
|
||||||
logger -expect error "Found 1 problems in" 1
|
|
||||||
check -nolatches -assert
|
|
||||||
|
|
||||||
design -reset
|
|
||||||
|
|
||||||
read_verilog <<EOT
|
read_verilog <<EOT
|
||||||
module top(input g, d, output reg q, output y);
|
module top(input g, d, output reg q, output y);
|
||||||
always @* if (g) q = d;
|
always @* if (g) q = d;
|
||||||
@@ -40,7 +29,5 @@ assign y = u;
|
|||||||
endmodule
|
endmodule
|
||||||
EOT
|
EOT
|
||||||
proc
|
proc
|
||||||
logger -expect warning "is a latch of type" 1
|
|
||||||
logger -expect warning "used but has no driver" 0
|
|
||||||
logger -expect error "Found 1 problems in" 1
|
logger -expect error "Found 1 problems in" 1
|
||||||
check -latchonly -assert
|
check -latchonly -assert
|
||||||
|
|||||||
Reference in New Issue
Block a user