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.

What's the difference between unsigned (7 to 0) and std_logic_vector (7 to 0)?

Status
Not open for further replies.

rajakash

Member level 2
Joined
Nov 9, 2006
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,608
hi friends

wat s the difference between
unsigned(7 downto 0)
std_logic_vector(7 downto 0);
 

Re: difference

Hey rajakash, Unsigned is internally treated like a number, and, of course, unsigned, range 0 to 255. std_logic_vector, is a vector, and you can assign, for example, a don´t care ('X') a tri-state ('Z'), and take one bit indepenently, for example, if you want the 4 bit, you can assign: test_vector <= test(4) --test_vector receives the 4th bit. any doubt, just ask!!!

regards

Breno
 

Re: difference

a std_logic_vector is converted to an unsigned (or a signed) for performing mathematical operations on it...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top