mirror of https://github.com/YosysHQ/yosys.git
parent
4adcbecec5
commit
4a942ba7b9
1
Makefile
1
Makefile
|
@ -695,6 +695,7 @@ test: $(TARGETS) $(EXTRA_TARGETS)
|
||||||
+cd tests/various && bash run-test.sh
|
+cd tests/various && bash run-test.sh
|
||||||
+cd tests/sat && bash run-test.sh
|
+cd tests/sat && bash run-test.sh
|
||||||
+cd tests/svinterfaces && bash run-test.sh $(SEEDOPT)
|
+cd tests/svinterfaces && bash run-test.sh $(SEEDOPT)
|
||||||
|
+cd tests/proc && bash run-test.sh
|
||||||
+cd tests/opt && bash run-test.sh
|
+cd tests/opt && bash run-test.sh
|
||||||
+cd tests/aiger && bash run-test.sh $(ABCOPT)
|
+cd tests/aiger && bash run-test.sh $(ABCOPT)
|
||||||
+cd tests/arch && bash run-test.sh
|
+cd tests/arch && bash run-test.sh
|
||||||
|
|
|
@ -69,8 +69,7 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
|
||||||
did_something = true;
|
did_something = true;
|
||||||
for (auto &action : sw->cases[0]->actions)
|
for (auto &action : sw->cases[0]->actions)
|
||||||
parent->actions.push_back(action);
|
parent->actions.push_back(action);
|
||||||
for (auto sw2 : sw->cases[0]->switches)
|
parent->switches.insert(parent->switches.begin(), sw->cases[0]->switches.begin(), sw->cases[0]->switches.end());
|
||||||
parent->switches.push_back(sw2);
|
|
||||||
sw->cases[0]->switches.clear();
|
sw->cases[0]->switches.clear();
|
||||||
delete sw->cases[0];
|
delete sw->cases[0];
|
||||||
sw->cases.clear();
|
sw->cases.clear();
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
*.log
|
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
read_verilog bug_1268.v
|
||||||
|
proc
|
||||||
|
equiv_make gold gate equiv
|
||||||
|
equiv_induct
|
||||||
|
equiv_status -assert
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
for x in *.ys; do
|
||||||
|
echo "Running $x.."
|
||||||
|
../../yosys -ql ${x%.ys}.log $x
|
||||||
|
done
|
Loading…
Reference in New Issue