diff options
Diffstat (limited to 'techlibs/intel_alm/common/dff_map.v')
-rw-r--r-- | techlibs/intel_alm/common/dff_map.v | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/techlibs/intel_alm/common/dff_map.v b/techlibs/intel_alm/common/dff_map.v index f7f2fe3c3..962be670c 100644 --- a/techlibs/intel_alm/common/dff_map.v +++ b/techlibs/intel_alm/common/dff_map.v @@ -6,7 +6,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(C), .ACLR(1'b1), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_P_ with INIT=1"); +end else $error("Cannot implement a flip-flop that initialises to one"); endmodule module \$_DFF_N_ (input D, C, output Q); @@ -14,7 +14,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(~C), .ACLR(1'b1), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_N_ with INIT=1"); +end else $error("Cannot implement a flip-flop that initialises to one"); endmodule // D flip-flops with reset @@ -23,7 +23,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(C), .ACLR(~R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_PP0_ with INIT=1"); +end else $error("Cannot implement a flip-flop with reset that initialises to one"); endmodule module \$_DFF_PN0_ (input D, C, R, output Q); @@ -31,7 +31,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(C), .ACLR(R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_PN0_ with INIT=1"); +end else $error("Cannot implement a flip-flop with reset that initialises to one"); endmodule module \$_DFF_NP0_ (input D, C, R, output Q); @@ -39,7 +39,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(~C), .ACLR(~R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_NP0_ with INIT=1"); +end else $error("Cannot implement a flip-flop with reset that initialises to one"); endmodule module \$_DFF_NN0_ (input D, C, R, output Q); @@ -47,7 +47,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(~C), .ACLR(R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFF_NN0_ with INIT=1"); +end else $error("Cannot implement a flip-flop with reset that initialises to one"); endmodule // D flip-flops with set @@ -58,7 +58,7 @@ if (_TECHMAP_WIREINIT_Q_ !== 1'b0) begin wire Q_tmp; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(~D), .CLK(C), .ACLR(~R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q_tmp)); assign Q = ~Q_tmp; -end else $error("Unsupported flop: $_DFF_PP1_ with INIT=0"); +end else $error("Cannot implement a flip-flop with set that initialises to zero"); endmodule module \$_DFF_PN1_ (input D, C, R, output Q); @@ -67,7 +67,7 @@ if (_TECHMAP_WIREINIT_Q_ !== 1'b0) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; wire Q_tmp; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(~D), .CLK(C), .ACLR(R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q_tmp)); -end else $error("Unsupported flop: $_DFF_PN1_ with INIT=0"); +end else $error("Cannot implement a flip-flop with set that initialises to zero"); endmodule module \$_DFF_NP1_ (input D, C, R, output Q); @@ -77,7 +77,7 @@ if (_TECHMAP_WIREINIT_Q_ !== 1'b0) begin wire Q_tmp; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(~D), .CLK(~C), .ACLR(~R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q_tmp)); assign Q = ~Q_tmp; -end else $error("Unsupported flop: $_DFF_NP1_ with INIT=0"); +end else $error("Cannot implement a flip-flop with set that initialises to zero"); endmodule module \$_DFF_NN1_ (input D, C, R, output Q); @@ -87,7 +87,7 @@ if (_TECHMAP_WIREINIT_Q_ !== 1'b0) begin wire Q_tmp; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(~D), .CLK(~C), .ACLR(R), .ENA(1'b1), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q_tmp)); assign Q = ~Q_tmp; -end else $error("Unsupported flop: $_DFF_NN1_ with INIT=0"); +end else $error("Cannot implement a flip-flop with set that initialises to zero"); endmodule // D flip-flops with clock enable @@ -96,7 +96,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(C), .ACLR(1'b1), .ENA(E), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFFE_PP_ with INIT=1"); +end else $error("Cannot implement a flip-flop with enable that initialises to one"); endmodule module \$_DFFE_PN_ (input D, C, E, output Q); @@ -104,7 +104,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(C), .ACLR(1'b1), .ENA(~E), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFFE_PN_ with INIT=1"); +end else $error("Cannot implement a flip-flop with enable that initialises to one"); endmodule module \$_DFFE_NP_ (input D, C, E, output Q); @@ -112,7 +112,7 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(~C), .ACLR(1'b1), .ENA(E), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFFE_NP_ with INIT=1"); +end else $error("Cannot implement a flip-flop with enable that initialises to one"); endmodule module \$_DFFE_NN_ (input D, C, E, output Q); @@ -120,5 +120,5 @@ parameter _TECHMAP_WIREINIT_Q_ = 1'b0; if (_TECHMAP_WIREINIT_Q_ !== 1'b1) begin wire _TECHMAP_REMOVEINIT_Q_ = 1'b1; MISTRAL_FF _TECHMAP_REPLACE_(.DATAIN(D), .CLK(~C), .ACLR(1'b1), .ENA(~E), .SCLR(1'b0), .SLOAD(1'b0), .SDATA(1'b0), .Q(Q)); -end else $error("Unsupported flop: $_DFFE_NN_ with INIT=1"); +end else $error("Cannot implement a flip-flop with enable that initialises to one"); endmodule |