diff --git a/src/main/resources/vsrc/TEC_RV_ICG.v b/src/main/resources/vsrc/TEC_RV_ICG.v new file mode 100644 index 00000000..aebabbef --- /dev/null +++ b/src/main/resources/vsrc/TEC_RV_ICG.v @@ -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