Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

How to combine signals in BDF?

I have wires a[5..0] and b[5..0] and wish to combine into a 12 bit bus. What should I label the resulting bus in the schematic file? or do I have to do this in code?

Thanks

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can copy a[] and b[] bit vectors to e. g. c[5..0] and c[11..6] using the wire net connector symbol.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The simplest way I know is to concatenate the signals with a comma, i.e.

    edit the properties of your 12 bit bus and name it a[5..0],b[5..0]. This will create a 12 bit bus with a[5..0] as the top half of the bus and b[5..0] as the bottom half.