mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
12 lines
183 B
Systemverilog
12 lines
183 B
Systemverilog
|
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
|