Digital Assignment
Digital Assignment
S24CSEU1843
DIVY MATHUR
OR GATE
FILE ortest.v.txt
Notepad screenshot
FILE orgate.v.txt
Output CMD OR GATE
NOT GATE
FILE nottest.v.txt
FILE notgate.v.txt
Gates Symbol
A Y
1 0
0 1
1 1 1 1 1 1
1 0 0 1 0 1
0 1 0 0 1 1
0 0 0 0 0 0
1. Module Declaration: Defines the module’s name and specifies its interface,
which includes the input and output ports.
2. Data Types: This includes the definition of input and output ports, which can
be of various data types like `wire`, `reg`, etc.
3. Internal Signals: These are intermediate signals declared within the module
using `wire`, `reg`, or other data types, used for internal computations.
4. Structural Logic: This part includes the combinational and sequential logic,
using constructs like `always` blocks, `assign` statements, and `initial` blocks.
3. Stimuli Generation: This involves creating input signals using `initial` and
`always` blocks to apply different test cases.
4. Clock and Reset Logic: A testbench often includes clock generation and reset
logic to mimic real hardware conditions.
OUTPUT