Skip to content

Commit

Permalink
tests: add test for abc9 -dff removing a redundant flop entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiehung committed May 25, 2020
1 parent 7bad23f commit 9c6d216
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/arch/xilinx/abc9_dff.ys
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9c6d216

Please sign in to comment.