VHDL question- what is value of i for the first active block

Status
Not open for further replies.

ombadei

Member level 3
Joined
Sep 1, 2008
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,754
VHDL question

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…