Design of A 4 Bit Computer Using VerilogHDL
Prasun Datta
ID: 1606148
Section : C
PC Architecture At a glance
Memory Unit : RAM
Input Register
Output Register
Stack Memory
Instruction Execution Unit
03
01
02
04
05
A 2D RAM is created called mypc_ram. Its of size 16*4. There are 16 unique addresses each of size 4 bits.
Two Input Registers called A & B are declared havimg size of 4 bit
Corresponding output registers called mypc_outA & mypc_outB are created. They are also of size 4 bits.
Similarly a stack memory is created called mypcMEM_STACK. This is also of size 16*4
This is the “Nucleus” of the designed 4 bit PC. In this unit instructions are executed sequentially. For implementing this 16 modules are designed according to different assigned tasks.
Unique Features
Instructions Performed
5. SHR A
6. MOV A, [ADDRESS]
7. XOR A,[ADDRESS]
8.AND A,B
9.OR B,[ADDRESS]
10. OUT A
11. JZ ADDRESS
12. PUSH B
13. POP B
14. CALL ADDRESS
15. RET
16. HLT
Intuitions From Waveform File
Illustration of Timing Diagram
Instruction: 1 to 5
Illustration of Timing Diagram
Instruction: 6 to 10
Illustration of Timing Diagram
Instruction: 11 to 13
Illustration of Timing Diagram
Instruction: 14 to 16
Thank You !!!