📄 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 + -