RTL Studio Open IDE

Logic Gates

OR-Reduce 8-Bit

Combinational 8-bit OR-reduce gate producing a single output bit.

About this block

Simulate it in the Verilog IDE

Easyverilogsimsyn

OR-Reduce 8-Bit is a Verilog reference block in the Logic Gates catalog. AND, OR, XOR, and other combinational gate and boolean logic primitives. Marked Easy: a small block you can read, simulate, and synthesize in one sitting.

This Intellectual Property (IP) implements a combinational 8-bit OR-reduce gate.

It accepts an 8-bit input vector and produces a single-bit output.

The output is asserted high (1) if any bit in the input vector is high, and low (0) otherwise.

  • Functionality: 8-bit OR reduction.
  • Type: Combinational logic.
  • Implementation: Verilog reduction operator |.
  • Verification: Comprehensive testbench covering zero, all-ones, single-bit, and mixed patterns.
  1. Choose Open in IDE. RTL Studio loads the packaged workspace for OR-Reduce 8-Bit.
  2. Read the Verilog module in the editor. The catalog line for this block: Combinational 8-bit OR-reduce gate producing a single output bit.
  3. Run the packaged testbench with the in-browser Verilator simulator, then open the VCD in the waveform viewer.
  4. Run Yosys in the same IDE for a generic netlist. Sky130 liberty mapping is a separate Pro library option.

RTL Studio is the Verilog simulator and IDE around this block: Slang lint, Verilator, VCD waveforms, and Yosys, in the browser. Simulation guide · Yosys guide.

Ports

PortDirectionWidthDescription
dataInput[7:0]8-bit input vector
outOutput1OR-reduced result (1 if any bit in data is 1)

Architecture

The design uses a single continuous assignment statement to perform the reduction. This ensures minimal critical path delay and optimal resource utilization in FPGA/ASIC implementations.

Verification

The testbench (tb/tb_or_reduce_8bit.v) covers the following critical cases:

Test CaseInputExpected OutputDescription
TC10x000All zeros
TC20xFF1All ones
TC30x011LSB set
TC40x801MSB set
TC50xAB1Mixed pattern
TC60x551Even bits set
TC70xAA1Odd bits set
TC80x021Single bit set

All test cases passed successfully.

More in Logic Gates

All Logic Gates blocks