Update README.md
This commit is contained in:
@@ -9,8 +9,8 @@ Most of the gates also have a 16-bit version and eventually a n-way version (som
|
|||||||
|
|
||||||
Ex: a 4-way mux gate:
|
Ex: a 4-way mux gate:
|
||||||
'''
|
'''
|
||||||
'include "mux.v";
|
include "mux.v";
|
||||||
'include "or4way.v";
|
include "or4way.v";
|
||||||
|
|
||||||
module mux4way(out, i0, i1, i2, i3, sel0, sel1);
|
module mux4way(out, i0, i1, i2, i3, sel0, sel1);
|
||||||
input i0, i1, i2, i3;
|
input i0, i1, i2, i3;
|
||||||
@@ -42,7 +42,7 @@ Testbenches are a way to test the implementation of a particular gate using a Ve
|
|||||||
|
|
||||||
Ex: testbench for a xor gate:
|
Ex: testbench for a xor gate:
|
||||||
'''
|
'''
|
||||||
'include "gates/predefined/xor_gate.v"
|
include "gates/predefined/xor_gate.v"
|
||||||
|
|
||||||
module xor_tb();
|
module xor_tb();
|
||||||
reg ta, tb;
|
reg ta, tb;
|
||||||
|
|||||||
Reference in New Issue
Block a user