process(h_clk)
begin
If h_clk’event and h_clk= ‘1’ then
If hour >= 23;
hour <= 0;
else
hour <= hour + 1;
end if;
end if;
end process;
process(CLO_S, hour_1)
begin
if CLO_S = ‘0’ and (hour_1’event and hour_1 = ‘0’) then
If hour >= 23;
hour <= 0;
else
hour <= hour + 1;
end if;
end if;
end process;
시계 만드는데 프로세스 구문 두개 합쳐야하는데 If (h_clk’event and h_clk= ‘1’) or (CLO_S = ‘0’ and (hour_1’event and hour_1 = ‘0’)) then
이렇게 묶어버리니까 Xst 797 : Unsupported clock state ment 뜨면서 안돼네요
댓글 0