ombadei
Member level 3
VHDL question
Hi.. relatively new to VHDL.. Trying to learn some basics on my own..
From the above code, what is the value of i for the first active clock? My guess is 0 but i am not sure.
Hi.. relatively new to VHDL.. Trying to learn some basics on my own..
Code:
architecture behavioral of practice is
signal x : integer range 0 to 50;
process (clk25, x)
variable i: integer range 0 to 10;
begin
i:= x - 10;
if clk25'event and clk25 = '1' then
--
--
-- x will be incremented
end if;
From the above code, what is the value of i for the first active clock? My guess is 0 but i am not sure.