Skip to content

NOR_GATE

Source: Verilog/Shared/logisim/NOR_GATE.v

Where it sits (Simulation): ND120_TOP > ND120_CORE > ND3202D > IO_37 > IO_DCD_38 > DECODE_DGA > DECODE_DGA_COMM > NOR_GATE - instance path: CORE.CPU_BOARD.IO.DCD.DGA.COMM.A196

Used in: CGA_CPU_ALU_CONTR (all tops), CGA_DCD (all tops), CGA_INTR_CNTLR_IRGEL (all tops), CGA_INTR_CNTLR_MDCD (all tops), CGA_INTR_CNTLR_VECGEN_PTY_PTYENC (all tops), CGA_INTR_IRSRC (all tops), CGA_MAC_DECODE (all tops), CGA_MAC_LASEL (all tops), CGA_MAC_PTSEL (all tops), CGA_MIC (all tops), CGA_MIC_STACK (all tops), CGA_MIC_WCAREG (all tops), CGA_TRAP_BRKDET (all tops), CGA_TRAP_TVGEN_P2 (all tops), DECODE_DGA_COMM (all tops), M169C_EN (all tops), MEM_DATA_46 (all tops), RMUX_Gates (all tops)

Contains: no other modules.

Module hierarchy - All modules

NOR_GATE symbol

Schematic

Drawn from the Verilog: the yosys netlist of the Simulation (Verilator) build, instance CORE.CPU_BOARD.MEM.DATA.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).

NOR_GATE schematic

Description

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

Ports

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

Verilog source

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

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

module NOR_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