Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/fpga/tc_clk_xilinx.sv
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module tc_clk_buffer (

endmodule

// Disable clock gating on FPGA as it behaves differently than expected
module tc_clk_gating #(
/// This paramaeter is a hint for tool/technology specific mappings of this
/// tech_cell. It indicates wether this particular clk gate instance is
Expand All @@ -44,7 +43,20 @@ module tc_clk_gating #(
output logic clk_o
);

assign clk_o = clk_i;
if (IS_FUNCTIONAL) begin : gen_functional
BUFGCE #(
.CE_TYPE ( "SYNC" ),
.IS_CE_INVERTED ( 1'b0 ),
.IS_I_INVERTED ( 1'b0 ),
.SIM_DEVICE ( "ULTRASCALE" )
) i_clk_gate (
.I ( clk_i ),
.CE ( en_i ),
.O ( clk_o )
);
end else begin : gen_non_functional
assign clk_o = clk_i;
end

endmodule

Expand Down