Different width of signals

Status
Not open for further replies.

Kosyas41

Member level 3
Joined
Apr 12, 2016
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
502
Hi,
Could you pls help me,I faced with next problem, I have to signals,one signal is 31 bits width,and the other is 16 bits,how to connect it together?
Code:
tx_sample_i      : signed(15 downto 0)
s_out : std_logic_vector(31 downto 0)
s_out => tx_sample_i
which conversion should I do?
 

You are copying a signed entity to std_logic_vector which needs explanation. What do you want to achieve? Sign extend the signed number to 32 bit? Left adjust the 16 bit number? Ignore the signed nature and fill the result with zero bits?

You should code the logic operation that is required by your specific application. We can't know what it is.
 

I already checked that link/and I know how to convert.My fft engine produce two outputs,each 32 bits width std_logic_vector,after this I want to connect this output whit thransiver input.which has only 16 signed width signal.
 

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