explanation of VHDL Codes

Status
Not open for further replies.

brunokasimin

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…