Нажмите для просмотра прикрепленного файла
Код
process (Clk, Rst)
begin
if Clk='1' and Clk'event then
count <= count + 1;
Clk_Baud <= '0';
elsif (Rst = '1') or (count = "00000000000000001111101000") or (Reset = '1') then
Clk_Baud <= '1';
count <= "00000000000000000000000000";
end if;
end process;
process (Clk_Baud)
begin
if Clk_Baud='1' and Clk_Baud'event then
cnt_m0 <= cnt_m0 + 1;
s_m0 <= '0';
elsif (Rst = '1') or (cnt_m0 = "1000011100") then
s_m0 <= '1';
cnt_m0 <= "0000000000";
end if;
begin
if Clk='1' and Clk'event then
count <= count + 1;
Clk_Baud <= '0';
elsif (Rst = '1') or (count = "00000000000000001111101000") or (Reset = '1') then
Clk_Baud <= '1';
count <= "00000000000000000000000000";
end if;
end process;
process (Clk_Baud)
begin
if Clk_Baud='1' and Clk_Baud'event then
cnt_m0 <= cnt_m0 + 1;
s_m0 <= '0';
elsif (Rst = '1') or (cnt_m0 = "1000011100") then
s_m0 <= '1';
cnt_m0 <= "0000000000";
end if;