Create TEC_RV_ICG.v

This commit is contained in:
Junaid Ahmed 2020-09-22 10:35:24 +05:00 committed by GitHub
parent 5cc210e06d
commit ac47375afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
module TEC_RV_ICG(
(
input logic SE, EN, CK,
output Q
);
logic en_ff;
logic enable;
assign enable = EN | SE;
always @(CK, enable) begin
if(!CK)
en_ff = enable;
end
assign Q = CK & en_ff;
endmodule