?? comparator.v
字號:
module COMPARATOR(ALARM_HRS,CLOCK_HRS,ALARM_MINS,CLOCK_MINS,ALARM_AM_PM, CLOCK_AM_PM,RINGER);input [3:0] ALARM_HRS,CLOCK_HRS;input [5:0] ALARM_MINS,CLOCK_MINS;input ALARM_AM_PM, CLOCK_AM_PM;output RINGER;reg RINGER; always @ (ALARM_HRS or CLOCK_HRS or ALARM_MINS or CLOCK_MINS or ALARM_AM_PM or CLOCK_AM_PM) begin RINGER = 1'b0; if ((ALARM_HRS == CLOCK_HRS) && (ALARM_MINS == CLOCK_MINS) && (ALARM_AM_PM == CLOCK_AM_PM)) RINGER = 1'b1; end endmodule
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -