Altera_Forum
Honored Contributor
14 years agoLogic gate output from bus
Hello to everybody,
I hope I am posting this at the right place. My question is actually very simple. I have a bus, e.g. a[3..0]. And I want to make an OR gate with one output which makes ORs for all nodes in the bus, i.e. (a[3] OR a[2] OR a[1] OR a[0]). In particular, I am looking for an symbol/component. I think there has to be a simple solution, but the primitive OR gate does not accept buses. The lpm_or gate would rather make an OR gate on two or more buses, but not on the nodes of one bus. And since this question is also related, is there a function in AHDL or VHDL there for, for example OR(a[]). Thank you in advance!