Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

unary OR operation on an Array

Status
Not open for further replies.

sandy.vb

Newbie level 5
Joined
Mar 3, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,339
hello

i wanted to know how to carry out a unary OR operation on the bits of an array in VHDL, the verilog analog for which is as follows :

(|reg_1[31:0]), where reg_1 is a register of appropriate size.

thanks in advance.
 

or_reduce(vector)

You can either quickly code your own, see page 6 of **broken link removed** for an example, or try using the IEEE reduce_Pack package **broken link removed**

....or it looks like IEEE.std_logic_misc package has it too. http://cs.umbc.edu/~squire/download/std_logic_misc.vhdl
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top