mirror of https://github.com/YosysHQ/yosys.git
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
|
read_verilog <<EOT
|
||
|
module top(input C, D, output [3:0] Q);
|
||
|
FDRE fd1(.C(C), .CE(1'b1), .D(D), .R(1'b1), .Q(Q[0]));
|
||
|
FDSE fd2(.C(C), .CE(1'b1), .D(D), .S(1'b1), .Q(Q[1]));
|
||
|
FDCE fd3(.C(C), .CE(1'b1), .D(D), .CLR(1'b1), .Q(Q[2]));
|
||
|
FDPE fd4(.C(C), .CE(1'b1), .D(D), .PRE(1'b1), .Q(Q[3]));
|
||
|
endmodule
|
||
|
EOT
|
||
|
equiv_opt -assert -multiclock -map +/xilinx/cells_sim.v synth_xilinx -abc9 -dff -noiopad -noclkbuf
|
||
|
design -load postopt
|
||
|
select -assert-none t:FD*
|
||
|
|
||
|
|
||
|
design -reset
|
||
|
read_verilog <<EOT
|
||
|
module top(input C, D, output [3:0] Q);
|
||
|
FDRE fd1(.C(C), .CE(1'b0), .D(D), .R(1'b0), .Q(Q[0]));
|
||
|
FDSE fd2(.C(C), .CE(1'b0), .D(D), .S(1'b0), .Q(Q[1]));
|
||
|
FDCE fd3(.C(C), .CE(1'b0), .D(D), .CLR(1'b0), .Q(Q[2]));
|
||
|
FDPE fd4(.C(C), .CE(1'b0), .D(D), .PRE(1'b0), .Q(Q[3]));
|
||
|
endmodule
|
||
|
EOT
|
||
|
equiv_opt -assert -multiclock -map +/xilinx/cells_sim.v synth_xilinx -abc9 -dff -noiopad -noclkbuf
|
||
|
design -load postopt
|
||
|
select -assert-none t:FD*
|
||
|
|
||
|
|
||
|
design -reset
|
||
|
read_verilog <<EOT
|
||
|
module top(input C, D, output [3:0] Q);
|
||
|
FDRE_1 fd1(.C(C), .CE(1'b1), .D(D), .R(1'b1), .Q(Q[0]));
|
||
|
FDSE_1 fd2(.C(C), .CE(1'b1), .D(D), .S(1'b1), .Q(Q[1]));
|
||
|
FDCE_1 fd3(.C(C), .CE(1'b1), .D(D), .CLR(1'b1), .Q(Q[2]));
|
||
|
FDPE_1 fd4(.C(C), .CE(1'b1), .D(D), .PRE(1'b1), .Q(Q[3]));
|
||
|
endmodule
|
||
|
EOT
|
||
|
|
||
|
equiv_opt -assert -multiclock -map +/xilinx/cells_sim.v synth_xilinx -abc9 -dff -noiopad -noclkbuf
|
||
|
design -load postopt
|
||
|
select -assert-none t:FD*
|
||
|
|
||
|
|
||
|
design -reset
|
||
|
read_verilog <<EOT
|
||
|
module top(input C, D, output [3:0] Q);
|
||
|
FDRE_1 fd1(.C(C), .CE(1'b0), .D(D), .R(1'b0), .Q(Q[0]));
|
||
|
FDSE_1 fd2(.C(C), .CE(1'b0), .D(D), .S(1'b0), .Q(Q[1]));
|
||
|
FDCE_1 fd3(.C(C), .CE(1'b0), .D(D), .CLR(1'b0), .Q(Q[2]));
|
||
|
FDPE_1 fd4(.C(C), .CE(1'b0), .D(D), .PRE(1'b0), .Q(Q[3]));
|
||
|
endmodule
|
||
|
EOT
|
||
|
|
||
|
equiv_opt -assert -multiclock -map +/xilinx/cells_sim.v synth_xilinx -abc9 -dff -noiopad -noclkbuf
|
||
|
design -load postopt
|
||
|
select -assert-none t:FD*
|