Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top