projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bad23f
)
tests: add test for abc9 -dff removing a redundant flop entirely
author
Eddie Hung
<eddie@fpgeh.com>
Mon, 25 May 2020 14:32:27 +0000
(07:32 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Mon, 25 May 2020 15:43:33 +0000
(08:43 -0700)
tests/arch/xilinx/abc9_dff.ys
patch
|
blob
|
history
diff --git
a/tests/arch/xilinx/abc9_dff.ys
b/tests/arch/xilinx/abc9_dff.ys
index c549e1fdc5217eadce2be64cf5424fd6c946768d..e3889be0501606722450cddfb3f842733f8fee5e 100644
(file)
--- a/
tests/arch/xilinx/abc9_dff.ys
+++ b/
tests/arch/xilinx/abc9_dff.ys
@@
-116,4
+116,19
@@
design -load postopt
select -assert-count 1 t:FDRE %co %a w:r %i
+design -reset
+read_verilog <<EOT
+module top(input clk, input a, b, output o);
+reg r1, r2;
+always @(posedge clk) begin
+ r1 <= a | b;
+ r2 <= ~(~a & ~b);
+end
+assign o = r1 | r2;
+endmodule
+EOT
+proc
+equiv_opt -assert -multiclock -map +/xilinx/cells_sim.v synth_xilinx -abc9 -dff -noiopad -noclkbuf
+
+
logger -expect-no-warnings