Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15478 Discussions

What does "|" mean here: "assign IntxReq_o = |irq_reg & intx_mode;"

Altera_Forum
Honored Contributor II
807 Views

I saw this expression today: 

 

assign IntxReq_o = |irq_reg & intx_mode; 

 

noticing there is a "|" right ahead of "irq_reg". I am familiar with "|=", but never saw "=|" before. 

 

Anyone knows? 

 

Update: 

 

It is reduction OR. Since irq_reg has multiple bits, the operator yields an OR result of all bits together. Apparently, I was using a much more labored way for a long time.
0 Kudos
0 Replies
Reply