mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 13:23:40 +00:00
parent
4adcbecec5
commit
4a942ba7b9
6 changed files with 37 additions and 2 deletions
1
tests/proc/.gitignore
vendored
Normal file
1
tests/proc/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.log
|
23
tests/proc/bug_1268.v
Normal file
23
tests/proc/bug_1268.v
Normal file
|
@ -0,0 +1,23 @@
|
|||
module gold (input clock, ctrl, din, output reg dout);
|
||||
always @(posedge clock) begin
|
||||
if (1'b1) begin
|
||||
if (1'b0) begin end else begin
|
||||
dout <= 0;
|
||||
end
|
||||
if (ctrl)
|
||||
dout <= din;
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
|
||||
module gate (input clock, ctrl, din, output reg dout);
|
||||
always @(posedge clock) begin
|
||||
if (1'b1) begin
|
||||
if (1'b0) begin end else begin
|
||||
dout <= 0;
|
||||
end
|
||||
end
|
||||
if (ctrl)
|
||||
dout <= din;
|
||||
end
|
||||
endmodule
|
5
tests/proc/bug_1268.ys
Normal file
5
tests/proc/bug_1268.ys
Normal file
|
@ -0,0 +1,5 @@
|
|||
read_verilog bug_1268.v
|
||||
proc
|
||||
equiv_make gold gate equiv
|
||||
equiv_induct
|
||||
equiv_status -assert
|
6
tests/proc/run-test.sh
Executable file
6
tests/proc/run-test.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
for x in *.ys; do
|
||||
echo "Running $x.."
|
||||
../../yosys -ql ${x%.ys}.log $x
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue