I have a counter block in system generator which has a 3 bit output. The block is shown below:
As is apparent from the figure, it's output is represented by a single line not three. I need to give its output bits to logical gates such as AND, OR, etc. but I do not know how to access the output bits (as I said; the output is represented by a single line). Can anyone help me?
Best Answer
You could use a block called bitbasher. It's a block with which you can individually manipulate the bits on a line. If you open it you should be able to write some code. Just write something like: $$b = \{a[1]\}$$ $$c=\{a[2]\}$$ $$d=\{a[3]\}$$ It'll create 3 outputs (b,c and d) and 1 input (a). The number within the brackets mean the number of the bit of the line you want to use.
For further reading I suggest: http://www.xilinx.com/support/sw_manuals/sysgen_ref.pdf.
When I was learning how to use system generator, it helped a lot.