SlideShare a Scribd company logo
Realization of An 8-bit Non-Pipelined Microprocessor with
Single Vectored Interrupt in Verilog HDL
Samnit Dua, Hardik Manocha, Harsh Bhatnagar
Email: samnitdua@gmail.com, manochahardik94@gmail.com,
harshbhatnagar2008@gmail.com
Abstract-
A microprocessor is a computer processor that incorporates the functions of a computer's central
processing unit (CPU) on a single integrated circuit (IC), or at most a few integrated circuits. The
microprocessor is a multipurpose, programmable device that accepts digital data as input, processes it
according to instructions stored in its memory, and provides results as output. It is an example of
sequential digital logic, as it has internal memory. Microprocessors operate on numbers and symbols
represented in the binary numeral system. In this design, there are four segments: Fetch Decode, Execute,
and Store. Each segment performs partial processing segments dictated by the way the task is partitioned.
The result obtained in one segment is transferred to subsequent segments in each step. The final result is
obtained after the data has passed through all segments. This paper develops a code for the
implementation of an 8-Bit microprocessor which implements instruction non-pipelining Simulation using
Xilinx and Modelsim also produces favorable results which showcase the proper functioning of the design.
INTRODUCTION-
Instruction non-pipelining
Instruction non-pipeline architecture reads instructions from memory after previous instructions are being
completely executed in each segments. This causes the instruction ‘fetch’, ‘execute’, ‘decode’ and ‘store’
phases to never overlap and perform simultaneous operations.
An instruction can generally be decomposed into the following steps:
1. FI- Fetch instruction: In this segment an instruction is fetched from memory.
2. DA- Decode the instruction and calculate the effective address: This instruction gets its input
from the FI segment and the instruction is decoded. This step does not require a clock cycle. The
operation which requires a clock cycle is the calculation of effective address.
3. FO- Fetch operand: In this step the operand is fetched from the memory.
4. EX- Execute and store: In this step the instruction is executed and the result is also stored in an
appropriate memory location.
Processor Realization
CPU ORGANIZATION AND LAYOUT:
1) 8 bit cpu
2) Architecture: VON NEUMAN
3) Behavioural modelling only
4) Different Instruction Memory and Data Memory
5) 16 words of Program memory
6) 4096 words of data memory
Register Organization:
1) Program Counter: PC – integer
2) Instruction register: IR - 16 bits
3) Address register: AR - 12 bits
4) Temporary address storage: ad - 6 bits (6 LSBs of AR)
5) Memory check register: memocheck -1 bit (for register reference and memory reference
istructions)
6) Current state register: current_state – 2 bits (to check the present state-
fetch/decode/execute/store)
7) Next state register: next_state- 1 bit (to hold the value of next operation to be carried outfetch/
decode/execute/return)
8) OPcode register: opcode – 3 bits
9) Instruct register: instruct -4 bits (in case instruction type is arithmetic/logical then this specifies
type of arithmetic/logical op to be carried out)
10) Registers RA,RB,rstore - 4 bits (to hold the address of source and destination registers
respectively)
11) Temporary register: W- 8 bits (to hold the value of the end result of any arithmetic/ logical
operation and incase of data MOV operation it holds the immediate value of the data to be
transferred)
Instruction Format:
I Opcode Instruct RA(index) RB(index)
I : 1- Memory reference
0-Register reference
Opcode: operational code which tells us what type of operation is to be carried out on the data present at
source registers ,given by the index in RA RB.
Opcode list:
000 - HLT: The cpu goes into an infinite loop terminating the program
001 - MVI: Move immediate value to destination register register(indicated by rstore), {RA,RB} is the 8-bit
concatenated word used as immediate data, rstore: address of destination register
000 (I=1) - STA: store contents of R0 (virtual accumulator) in the memory address given by ad;
001 (I=1) - LDA: load the contents of memory specified by ad into the accumulator (R0)
010 (I=1) - JMP: jump to the location specified by 6 bits in ad
010 – Operation: opcode for all arithmetic /logical instructions further classified by 4 bits instruct field
MOV=0000; Move Contents Of Register[RB] To Register[RA]
ADD=0001; Add Contents Of Register[RB] with Contents Of Register[RA] & save result in R[A]
ADC=0010; ADD With Carry, Add contents of register[RB] with contents Of Register[RA] & save result In
R[A]
SBB=0011; Subtract With Borrow
SUB=0100; Subtract contents of Register[RB] with contents of Register[RA] & save result in R[A]
INC=0110; Increment contents of Register[RA] & save result in R[A]
DEC=0111; Decrement contents of Register[RA] & save result in R[A]
AND=1001; Logically AND contents of Register[RB] with contents of Register[RA] & save result in R[A]
OR=1010; Logically OR contents of Register[RB] with contents of Register[RA] & save result in R[A]
XOR=1011; Logically XOR contents of Register[RB] with contents of Register[RA] & save result in R[A]
CMP=1000; Complement contents of Register[RA]
SHR=1100; Shift right contents of Register[RA] by 1 bit
SHL=1101; Shift left contents of Register[RA] by 1 bit
WAVEFORMS:
SYNTHESIZE REPORT:
TIMING ANALYSIS:
Speed Grade: -3 Minimum periods: 2.096ns (Maximum Frequency: 477.190MHz)
Minimum input arrival time before clock: 1.826ns
Maximum output required time after clock: 0.774ns
Maximum combinational path delay: No path found
=========================================================================
Process "Synthesize - XST" completed successfully
FUTURE SCOPE
Resides in bringing pipelined architecture to this processor design. Through pipelined architecture, Speed
of the design would increase as each of the four segments would be working in parallel. Thus, one
segment would feed another and would again be working for its requirement in the design.
CONCLUSION
In this project, we have introduced the concept of 8 bit non pipelined microprocessor with four different
segments: Fetch Decode, Execute and Store. All of these segments work together to solve the purpose of
a microprocessor. Various instructions such as Add, ADC, XOR etc were implemented.
Also our design consists of Single Pin Vectored Interrupt. If an interrupting device marks High on this
input pin of microprocessor, then after executing the current instruction, microprocessor jumps to
instruction 7 in the instruction memory.
ACKNOWLEDGMENT
We would like to especially thank our project guide Mr. Harsh Bhatnagar whose valuable suggestions
helped shape the basis of our project idea.
REFRENCES
1. Verilog HDL (2nd Edition),Samir Palnitkar
2. Computer System Architecture (3rd Edition) M Morris Mano,Prentice Hall (1993)
3. Computer Systems Organization and Architecture ,John D. Carpinelli
4. Ronald, J. Tocci, Widmer, N. Moss, G. (1998), “Digital Systems Principles and Application”,
Prentice-Hall
5. International Inc., New Jersey, 182-341.
6. Digital Design and Verilog HDL Fundamentals ,Joseph Canavagh,CRC Press(1st Edition 2008)
7. Verilog for Digital Design Frank Vahid , Roman Lysecky ,Wiley
8. Digital Design (4th Edition) M Morris Mano, Prentice Hall; 4 edition (December 25, 2006)

More Related Content

PPTX
1. Introduction to Microprocessor.pptx
PDF
Instruction.pdf
PPT
Pipelining and co processor.
PPTX
Pentium 8086 Instruction Format
PPT
Delay routine
PPTX
Sequential Logic Circuits
PPTX
instructions of 8085 Microprocessor
PPT
Blackfin Processor Core Architecture Part 2
1. Introduction to Microprocessor.pptx
Instruction.pdf
Pipelining and co processor.
Pentium 8086 Instruction Format
Delay routine
Sequential Logic Circuits
instructions of 8085 Microprocessor
Blackfin Processor Core Architecture Part 2

What's hot (19)

PDF
4bit PC report
PPTX
Clock-8086 bus cycle
PDF
Microprocessor 8085
PPT
Types of instructions
PPTX
Pentium (80586) Microprocessor By Er. Swapnil Kaware
PPTX
TMS320C6X Architecture
PPTX
4. Instruction Set Of MP 8085.pptx
PDF
8085 instructions and addressing modes
PPSX
Intel 8085 mp
PPTX
Microprocessor 8085 Chapter 3
PDF
Lec 12-15 mips instruction set processor
PPT
Chapter 3 instruction set-of-8085
PPT
Intel 64bit Architecture
PPTX
The sparc architecture (3)
PPTX
Instruction Set Architecture
PDF
Lecture 04 branch call and time delay
PPTX
Intel IA 64
4bit PC report
Clock-8086 bus cycle
Microprocessor 8085
Types of instructions
Pentium (80586) Microprocessor By Er. Swapnil Kaware
TMS320C6X Architecture
4. Instruction Set Of MP 8085.pptx
8085 instructions and addressing modes
Intel 8085 mp
Microprocessor 8085 Chapter 3
Lec 12-15 mips instruction set processor
Chapter 3 instruction set-of-8085
Intel 64bit Architecture
The sparc architecture (3)
Instruction Set Architecture
Lecture 04 branch call and time delay
Intel IA 64
Ad

Similar to 8 bit Microprocessor with Single Vectored Interrupt (20)

PDF
4bit pc report[cse 08-section-b2_group-02]
PDF
16-bit Microprocessor Design (2005)
PDF
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
PDF
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
PPT
Microprocessor Systems and Interfacing Slides
PPTX
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
DOC
viva q&a for mp lab
PPT
microprocessor
PPTX
מצגת פרויקט
PPTX
DSP Processor.pptx
PPTX
Introduction to microprocessor
PPTX
CSe_Cumilla Bangladesh_Country CSE CSE213_5.ppt
PPTX
MICRO-PROCESSORS and MICRO -CONTROLLER topic
PPTX
Microprocessor (1)
PDF
THE 8086 MICROPROCESSOR -architecture, basics
PPT
Computer Organization and Architecture.
PDF
Architecture Of TMS320C50 DSP Processor
PPT
Micro processor
PPT
Design and implementation of five stage pipelined RISC-V processor using Ver...
PPTX
Microprocessors & Microcontrollers Architecture and Description
4bit pc report[cse 08-section-b2_group-02]
16-bit Microprocessor Design (2005)
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
Microprocessor Systems and Interfacing Slides
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
viva q&a for mp lab
microprocessor
מצגת פרויקט
DSP Processor.pptx
Introduction to microprocessor
CSe_Cumilla Bangladesh_Country CSE CSE213_5.ppt
MICRO-PROCESSORS and MICRO -CONTROLLER topic
Microprocessor (1)
THE 8086 MICROPROCESSOR -architecture, basics
Computer Organization and Architecture.
Architecture Of TMS320C50 DSP Processor
Micro processor
Design and implementation of five stage pipelined RISC-V processor using Ver...
Microprocessors & Microcontrollers Architecture and Description
Ad

More from Hardik Manocha (10)

PDF
Solar Energy assisted E-Rickshaw
PDF
Hybrid AES DES
PDF
Hybrid Communication Protocol- UART & SPI
PDF
Triple Data Encryption Standard (t-DES)
PDF
Advanced Encryption Standard (AES)
PDF
Advanced Encryption Standard (AES) with Dynamic Substitution Box
PDF
Authenticated Encryption Decryption Scheme
PPT
Minor Project- AES Implementation in Verilog
PPTX
Seminar on Encryption and Authenticity
PPTX
VLSI DESIGN Conference 2016, Kolkata- Authenticated Encryption Decryption
Solar Energy assisted E-Rickshaw
Hybrid AES DES
Hybrid Communication Protocol- UART & SPI
Triple Data Encryption Standard (t-DES)
Advanced Encryption Standard (AES)
Advanced Encryption Standard (AES) with Dynamic Substitution Box
Authenticated Encryption Decryption Scheme
Minor Project- AES Implementation in Verilog
Seminar on Encryption and Authenticity
VLSI DESIGN Conference 2016, Kolkata- Authenticated Encryption Decryption

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
Project quality management in manufacturing
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
composite construction of structures.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
additive manufacturing of ss316l using mig welding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Construction Project Organization Group 2.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Project quality management in manufacturing
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
composite construction of structures.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
UNIT 4 Total Quality Management .pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
bas. eng. economics group 4 presentation 1.pptx
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
Internet of Things (IOT) - A guide to understanding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

8 bit Microprocessor with Single Vectored Interrupt

  • 1. Realization of An 8-bit Non-Pipelined Microprocessor with Single Vectored Interrupt in Verilog HDL Samnit Dua, Hardik Manocha, Harsh Bhatnagar Email: samnitdua@gmail.com, manochahardik94@gmail.com, harshbhatnagar2008@gmail.com Abstract- A microprocessor is a computer processor that incorporates the functions of a computer's central processing unit (CPU) on a single integrated circuit (IC), or at most a few integrated circuits. The microprocessor is a multipurpose, programmable device that accepts digital data as input, processes it according to instructions stored in its memory, and provides results as output. It is an example of sequential digital logic, as it has internal memory. Microprocessors operate on numbers and symbols represented in the binary numeral system. In this design, there are four segments: Fetch Decode, Execute, and Store. Each segment performs partial processing segments dictated by the way the task is partitioned. The result obtained in one segment is transferred to subsequent segments in each step. The final result is obtained after the data has passed through all segments. This paper develops a code for the implementation of an 8-Bit microprocessor which implements instruction non-pipelining Simulation using Xilinx and Modelsim also produces favorable results which showcase the proper functioning of the design. INTRODUCTION- Instruction non-pipelining Instruction non-pipeline architecture reads instructions from memory after previous instructions are being completely executed in each segments. This causes the instruction ‘fetch’, ‘execute’, ‘decode’ and ‘store’ phases to never overlap and perform simultaneous operations. An instruction can generally be decomposed into the following steps: 1. FI- Fetch instruction: In this segment an instruction is fetched from memory. 2. DA- Decode the instruction and calculate the effective address: This instruction gets its input from the FI segment and the instruction is decoded. This step does not require a clock cycle. The operation which requires a clock cycle is the calculation of effective address. 3. FO- Fetch operand: In this step the operand is fetched from the memory. 4. EX- Execute and store: In this step the instruction is executed and the result is also stored in an appropriate memory location. Processor Realization CPU ORGANIZATION AND LAYOUT: 1) 8 bit cpu 2) Architecture: VON NEUMAN 3) Behavioural modelling only
  • 2. 4) Different Instruction Memory and Data Memory 5) 16 words of Program memory 6) 4096 words of data memory Register Organization: 1) Program Counter: PC – integer 2) Instruction register: IR - 16 bits 3) Address register: AR - 12 bits 4) Temporary address storage: ad - 6 bits (6 LSBs of AR) 5) Memory check register: memocheck -1 bit (for register reference and memory reference istructions) 6) Current state register: current_state – 2 bits (to check the present state- fetch/decode/execute/store) 7) Next state register: next_state- 1 bit (to hold the value of next operation to be carried outfetch/ decode/execute/return) 8) OPcode register: opcode – 3 bits 9) Instruct register: instruct -4 bits (in case instruction type is arithmetic/logical then this specifies type of arithmetic/logical op to be carried out) 10) Registers RA,RB,rstore - 4 bits (to hold the address of source and destination registers respectively) 11) Temporary register: W- 8 bits (to hold the value of the end result of any arithmetic/ logical operation and incase of data MOV operation it holds the immediate value of the data to be transferred) Instruction Format: I Opcode Instruct RA(index) RB(index) I : 1- Memory reference 0-Register reference Opcode: operational code which tells us what type of operation is to be carried out on the data present at source registers ,given by the index in RA RB. Opcode list: 000 - HLT: The cpu goes into an infinite loop terminating the program 001 - MVI: Move immediate value to destination register register(indicated by rstore), {RA,RB} is the 8-bit concatenated word used as immediate data, rstore: address of destination register 000 (I=1) - STA: store contents of R0 (virtual accumulator) in the memory address given by ad; 001 (I=1) - LDA: load the contents of memory specified by ad into the accumulator (R0) 010 (I=1) - JMP: jump to the location specified by 6 bits in ad 010 – Operation: opcode for all arithmetic /logical instructions further classified by 4 bits instruct field
  • 3. MOV=0000; Move Contents Of Register[RB] To Register[RA] ADD=0001; Add Contents Of Register[RB] with Contents Of Register[RA] & save result in R[A] ADC=0010; ADD With Carry, Add contents of register[RB] with contents Of Register[RA] & save result In R[A] SBB=0011; Subtract With Borrow SUB=0100; Subtract contents of Register[RB] with contents of Register[RA] & save result in R[A] INC=0110; Increment contents of Register[RA] & save result in R[A] DEC=0111; Decrement contents of Register[RA] & save result in R[A] AND=1001; Logically AND contents of Register[RB] with contents of Register[RA] & save result in R[A] OR=1010; Logically OR contents of Register[RB] with contents of Register[RA] & save result in R[A] XOR=1011; Logically XOR contents of Register[RB] with contents of Register[RA] & save result in R[A] CMP=1000; Complement contents of Register[RA] SHR=1100; Shift right contents of Register[RA] by 1 bit SHL=1101; Shift left contents of Register[RA] by 1 bit WAVEFORMS:
  • 4. SYNTHESIZE REPORT: TIMING ANALYSIS: Speed Grade: -3 Minimum periods: 2.096ns (Maximum Frequency: 477.190MHz) Minimum input arrival time before clock: 1.826ns Maximum output required time after clock: 0.774ns Maximum combinational path delay: No path found ========================================================================= Process "Synthesize - XST" completed successfully
  • 5. FUTURE SCOPE Resides in bringing pipelined architecture to this processor design. Through pipelined architecture, Speed of the design would increase as each of the four segments would be working in parallel. Thus, one segment would feed another and would again be working for its requirement in the design. CONCLUSION In this project, we have introduced the concept of 8 bit non pipelined microprocessor with four different segments: Fetch Decode, Execute and Store. All of these segments work together to solve the purpose of a microprocessor. Various instructions such as Add, ADC, XOR etc were implemented. Also our design consists of Single Pin Vectored Interrupt. If an interrupting device marks High on this input pin of microprocessor, then after executing the current instruction, microprocessor jumps to instruction 7 in the instruction memory. ACKNOWLEDGMENT We would like to especially thank our project guide Mr. Harsh Bhatnagar whose valuable suggestions helped shape the basis of our project idea. REFRENCES 1. Verilog HDL (2nd Edition),Samir Palnitkar 2. Computer System Architecture (3rd Edition) M Morris Mano,Prentice Hall (1993) 3. Computer Systems Organization and Architecture ,John D. Carpinelli 4. Ronald, J. Tocci, Widmer, N. Moss, G. (1998), “Digital Systems Principles and Application”, Prentice-Hall 5. International Inc., New Jersey, 182-341. 6. Digital Design and Verilog HDL Fundamentals ,Joseph Canavagh,CRC Press(1st Edition 2008) 7. Verilog for Digital Design Frank Vahid , Roman Lysecky ,Wiley 8. Digital Design (4th Edition) M Morris Mano, Prentice Hall; 4 edition (December 25, 2006)