mobile-it
Advanced Member level 1
I am trying to learn the synthesize process for my actel FPGA
I get problem with the following code:
entity UART_CLK is
port (
clk : in std_ulogic;
rst : in std_ulogic;
CLK384 : out std_ulogic
);
end UART_CLK;
architecture behavioral of UART_CLK is
signal clkDiv : std_logic_vector(7 downto 0);
signal CLKt : std_ulogic;
constant baudDivide : std_logic_vector(7 downto 0) := X"82";
begin
process (clk, rst)
begin
if (rst = '1') then
clkDiv <= baudDivide;
CLKt <= '0';
elsif (clk = '1' and clk'event) then
if (clkDiv = X"00") then
clkDiv <= baudDivide;
CLKt <= not CLKt;
else
clkDiv <= clkDiv - 1;
end if;
end if;
end process;
CLK384 <= CLKt;
end behavioral;
What is wrong with this?
thank you for helping.
I get problem with the following code:
entity UART_CLK is
port (
clk : in std_ulogic;
rst : in std_ulogic;
CLK384 : out std_ulogic
);
end UART_CLK;
architecture behavioral of UART_CLK is
signal clkDiv : std_logic_vector(7 downto 0);
signal CLKt : std_ulogic;
constant baudDivide : std_logic_vector(7 downto 0) := X"82";
begin
process (clk, rst)
begin
if (rst = '1') then
clkDiv <= baudDivide;
CLKt <= '0';
elsif (clk = '1' and clk'event) then
if (clkDiv = X"00") then
clkDiv <= baudDivide;
CLKt <= not CLKt;
else
clkDiv <= clkDiv - 1;
end if;
end if;
end process;
CLK384 <= CLKt;
end behavioral;
What is wrong with this?
thank you for helping.