how to combine outputs???

Status
Not open for further replies.

Salil Vaidya

Newbie level 6
Joined
Feb 27, 2014
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
109
If i have p0,p1,p2.......p15 as separate 1 bit outputs,thencan i make a 16 bit bus [15:0] using all these individua outputs???
I m making a 8*8 wallace multiplier and i want to combine all these 1 bit outputs to make a 16 bit output.how to do that???
 

Yes, you can just define a suitable signal for this purpose. In VHDL, you could use something like this:
Code:
signal p : std_logic_vector(15 downto 0);

...

p(0) <= p0;
p(1) <= p1;
...
p(15) <= p15;
 
Why are they all separate in the first place?
 

because if i take them as a bus and write my code...it shows me warning for each product term...
 

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