Posts

Showing posts with the label Logic Gates

VLSI: Logic Gates Gate Level Modelling

Image
AND Gate: Verilog Module Code: module and_gate (      input  a,      input  b,      output  c ); and (c,a,b); endmodule OR Gate: Verilog Module Code: module or_gate (      input  a,      input  b,      output  c ); or (c,a,b); endmodule NAND Gate: Verilog Module Code: module nand_gate (      input  a,      input  b,      output  c ); nand (c,a,b); endmodule NOR Gate: Verilog Module Code: module nor_gate (      input  a,      input  b,      output  c ); nor (c,a,b); endmodule XOR Gate: Verilog Module Code: module xor_gate (      input  a,  ...

VLSI: Logic Gates Dataflow Modelling

Image
AND Gate: Verilog Module Code: module and_gate (      input  a,      input  b,      output  c ); assign  c = a & b; endmodule OR Gate: Verilog Module Code: module or_gate (      input a,      input b,      output c ); assign  c = a | b; endmodule NAND Gate: Verilog Module Code: module nand_gate (      input  a,      input  b,      output  c ); assign  c = ~ ( a & b ); endmodule NOR Gate: Verilog Module Code: module nor_gate (      input  a,      input  b,      output  c ); assign  c = ~ ( a | b ); endmodule XOR Gate: Verilog Module Code: module xor_gate ( ...

Popular posts from this blog

Verilog: 8 to 1 Multiplexer (8-1 MUX) Dataflow Modelling with Testbench Code

VLSI: 1-4 DEMUX (Demultiplexer) Dataflow Modelling with Testbench

VLSI: 4-1 MUX Dataflow Modelling with Testbench

VLSI: Half Subtractor and Full Subtractor Gate Level Modelling

Full Subtractor Verilog Code in Structural/Gate Level Modelling with Testbench