cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

duno_297731
New Contributor II

hello,

   

 

   

I have a control register (8 bit wide bus) in my schematic, and I want to take that bus and run it to two places.  the first destination is just a straight connection bit for bit.  for the other destination, I want to send the control register's upper 7 bits to the destinations lower 7 bits (a right shift, effectively) and concatenate a different wire onto the upper input.  

   

 

   

something like:
 

   

assign destination_reg[7:0] =  {single_bit , control_reg[7:1]}

   

 

   

such that if single_bit is 1, and control_reg was 00110101, that destination_reg[7:0] would be 10011010

   

 

   

what is the best way to do this in the schematic editor?  I don't know how to manipulate the buses well enough.  I could make 7 series-pairs of not gates (effectively a buffer), and assign the inputs to the upper bits of the control_reg bus, then assign the outputs to the lower bits of the destination_reg, but that's really messy.

0 Likes
3 Replies
AnkitaS_51
Employee

You can try editing the wire option and set the index as shown in image attached-

0 Likes
JobinT_31
Employee

Attaching a project to help you better.

   

Thanks

   

JOBIN

0 Likes
odissey1
Honored Contributor II

Psoc4_guy,

   

You can use a Dummy component to resolve bus routing issues like that:

   

http://www.cypress.com/forum/psoc-community-components/dummy-empty-component-digital-bus-routing

   

Project example attached.

   

   

0 Likes