vhdl SXT function - How they process the function?

Status
Not open for further replies.

fanwel

Full Member level 3
Joined
May 26, 2011
Messages
178
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,878
Hai all,

I have learn about SXT function and I have 1 line code (from example) as below:

bp<=SXT(a,9) + b;

where bp: std_logic_vecor(8 downto 0), a: std_logic_vector(7 downto 0), b: std_logic_vector(7 downto 0)
As I know and understand, SXT function is used to extend the bit width. From the above line code, how exactly they perform? I confuse why need to use SXT function and not just add a with b? :-(Need helps from expert.Thanks in advance
 

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