URL
https://opencores.org/ocsvn/yifive/yifive/trunk
Subversion Repositories yifive
[/] [yifive/] [trunk/] [caravel_yifive/] [verilog/] [rtl/] [syntacore/] [scr1/] [src/] [core/] [primitives/] [scr1_cg.sv] - Rev 11
Compare with Previous | Blame | View Log
/// Copyright by Syntacore LLC © 2016-2020. See LICENSE for details/// @file <scr1_cg.sv>/// @brief SCR1 clock gate primitive///`include "scr1_arch_description.svh"`ifdef SCR1_CLKCTRL_ENmodule scr1_cg (input logic clk,input logic clk_en,input logic test_mode,output logic clk_out);// The code below is a clock gate model for simulation.// For synthesis, it should be replaced by implementation-specific// clock gate code.logic latch_en;always_latch beginif (~clk) beginlatch_en <= test_mode | clk_en;endendassign clk_out = latch_en & clk;endmodule : scr1_cg`endif // SCR1_CLKCTRL_EN
