cvw/fpga/sim/bufgce.sv

12 lines
183 B
Systemverilog
Raw Normal View History

2021-10-11 15:24:40 +00:00
module BUFGCE (input logic I, input logic CE, output logic O);
logic CE_Q;
always_latch begin
if(~I) begin
CE_Q <= CE;
end
end
assign O = CE_Q & I;
endmodule