以下程序是将200HZ的CLK 分频成两个相反的50HZ信号LOAD和CLKIN 请高手给我解释一下我看不懂这个程序 谢谢!
CKXH:BLOCK IS BEGIN PROCESS(CLK)IS VARIABLE COUNT:STD_LOGIC; BEGIN IF CLK'EVENT AND CLK='1'THEN IF COUNT='1'THEN COUNT:='0'; CLKIN<=NOT CLKIN; ELSE COUNT:=NOT COUNT; END IF; END IF; LOAD<=NOT CLKIN; END PROCESS; END BLOCK CKXH; |