Skip to content

OR_GATE

Source: Verilog/Shared/logisim/OR_GATE.v

Where it sits (Simulation): ND120_TOP > ND120_CORE > ND3202D > BIF_5 > BIF_BCTL_6 > BIF_BCTL_BDRV_7 > OR_GATE - instance path: CORE.CPU_BOARD.BIF.BCTL.BDRV.GATES_1

Used in: BIF_BCTL_BDRV_7 (all tops), CGA_DCD (all tops), CGA_INTR (all tops), CGA_INTR_CNTLR_IRGEL_HIRL (all tops), CGA_INTR_CNTLR_IRGEL_VMUX (all tops), CGA_INTR_CNTLR_MDCD (all tops), CGA_INTR_CNTLR_VECGEN_ISMUX (all tops), CGA_INTR_CNTLR_VECGEN_OSMUX (all tops), CGA_INTR_CNTLR_VECGEN_PTY_PTYENC (all tops), CGA_MAC_ADD (all tops), CGA_MAC_LA1025 (all tops), CGA_MAC_LASEL (all tops), CGA_MAC_PTSEL (all tops), CGA_MIC (all tops), CGA_MIC_STACK_BIT (all tops), CGA_MIC_STACK_BIT12 (all tops)

Contains: no other modules.

Module hierarchy - All modules

OR_GATE symbol

Schematic

Drawn from the Verilog: the yosys netlist of the Simulation (Verilator) build, instance CORE.CPU_BOARD.BIF.BCTL.BDRV.GATES_1. Sub-modules are boxes (click the picture to open it full size; there every sub-module box links to its page, and every wire shows its Verilog name).

OR_GATE schematic

Description

Logisim-evolution goes FPGA automatic generated Verilog code https://github.com/logisim-evolution/ Component : OR_GATE

Ports

Direction Width Name Description
input 1 input1
input 1 input2
output 1 result

Verilog source

Verilog/Shared/logisim/OR_GATE.v on GitHub.

Show the Verilog of OR_GATE (51 lines)
/******************************************************************************
 ** Logisim-evolution goes FPGA automatic generated Verilog code             **
 ** https://github.com/logisim-evolution/                                    **
 **                                                                          **
 ** Component : OR_GATE                                                      **
 **                                                                          **
 *****************************************************************************/

module OR_GATE( input1,
                input2,
                result );

   /*******************************************************************************
   ** Here all module parameters are defined with a dummy value                  **
   *******************************************************************************/
   parameter [64:0] BubblesMask = 1;

   /*******************************************************************************
   ** The inputs are defined here                                                **
   *******************************************************************************/
   input input1;
   input input2;

   /*******************************************************************************
   ** The outputs are defined here                                               **
   *******************************************************************************/
   output result;

   /*******************************************************************************
   ** The wires are defined here                                                 **
   *******************************************************************************/
   wire s_realInput1;
   wire s_realInput2;

   /*******************************************************************************
   ** The module functionality is described here                                 **
   *******************************************************************************/

   /*******************************************************************************
   ** Here the bubbles are processed                                             **
   *******************************************************************************/
   assign  s_realInput1 = (BubblesMask[0] == 1'b0) ? input1 : ~input1;
   assign  s_realInput2 = (BubblesMask[1] == 1'b0) ? input2 : ~input2;

   /*******************************************************************************
   ** Here the functionality is defined                                          **
   *******************************************************************************/
   assign result = s_realInput1|
                   s_realInput2;

endmodule