Skip to content

Commit

Permalink
add tc_clk_xor2 (#225)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Frey <[email protected]>
  • Loading branch information
fimtrey and Tim Frey authored Mar 16, 2023
1 parent dfe47c8 commit 95256ea
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion hw/fpga/prim_xilinx_clk.sv
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ module cv32e40x_clock_gate #(

endmodule

module tc_clk_gating (
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
/// required for functional correctness or just instantiated for power
/// savings. If IS_FUNCTIONAL == 0, technology specific mappings might
/// replace this cell with a feedthrough connection without any gating.
parameter bit IS_FUNCTIONAL = 1'b1
) (
input logic clk_i,
input logic en_i,
input logic test_en_i,
Expand Down Expand Up @@ -141,3 +148,13 @@ module tc_clk_mux2 (
);

endmodule

module tc_clk_xor2 (
input logic clk0_i,
input logic clk1_i,
output logic clk_o
);

assign clk_o = clk0_i ^ clk1_i;

endmodule

0 comments on commit 95256ea

Please sign in to comment.