diff options
Diffstat (limited to 'generic/synth/prims.v')
-rw-r--r-- | generic/synth/prims.v | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/generic/synth/prims.v b/generic/synth/prims.v index 95fcfac7..47a5df0f 100644 --- a/generic/synth/prims.v +++ b/generic/synth/prims.v @@ -21,21 +21,19 @@ endmodule module GENERIC_SLICE #( parameter K = 4, parameter [2**K-1:0] INIT = 0, - parameter FF_USED = 1'b0 ) ( input CLK, input [K-1:0] I, + output F, output Q ); + wire f_wire; - wire lut_q; - LUT #(.K(K), .INIT(INIT)) lut_i(.I(I), .Q(lut_q)); + LUT #(.K(K), .INIT(INIT)) lut_i(.I(I), .Q(f_wire)); - generate if (FF_USED) - DFF dff_i(.CLK(CLK), .D(lut_q), .Q(Q)); - else - assign Q = lut_q; - endgenerate + DFF dff_i(.CLK(CLK), .D(f_wire), .Q(Q)); + + assign F = f_wire; endmodule module GENERIC_IOB #( @@ -56,4 +54,4 @@ module GENERIC_IOB #( generate if (INPUT_USED) assign O = PAD; endgenerate -endmodule
\ No newline at end of file +endmodule |