Continue to Site

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.

explanation of VHDL Codes

Status
Not open for further replies.

brunokasimin

Member level 4
Member level 4
Joined
Jun 13, 2008
Messages
70
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,828
hello everyone,

constant maxAddrBitIncIO : integer := 27;

constant maxAddrBitBRAM : integer := 16;



-- start byte address of stack.

-- point to top of RAM - 2*words
constant spStart : std_logic_vector(maxAddrBitIncIO downto 0) :=
conv_std_logic_vector((2**(maxAddrBitBRAM+1))-8, maxAddrBitIncIO+1);

What does this "conv_std_logic_vector((2**(maxAddrBitBRAM+1))-8, maxAddrBitIncIO+1);" tell us?


thx in advanced
 

conv_std_logic_vector function converts its first argument to the std_logic_vector type with the size of the 2nd argument.
 
no, this is exponential, and left side of the ** can be integer or floating point, but right side must be integer only. i recommend u download some VHDL book. good luck
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top