SlideShare une entreprise Scribd logo
1  sur  5
Télécharger pour lire hors ligne
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)

Contenu connexe

Tendances

Pentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil KawarePentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
 
The sparc architecture (3)
The sparc architecture (3)The sparc architecture (3)
The sparc architecture (3)
vishuupra
 

Tendances (19)

4bit PC report
4bit PC report4bit PC report
4bit PC report
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
Microprocessor 8085
Microprocessor 8085Microprocessor 8085
Microprocessor 8085
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Pentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil KawarePentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil Kaware
 
TMS320C6X Architecture
TMS320C6X ArchitectureTMS320C6X Architecture
TMS320C6X Architecture
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
Intel 8085 mp
Intel 8085 mpIntel 8085 mp
Intel 8085 mp
 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
 
Unit V:Motorola 563xx
Unit V:Motorola 563xxUnit V:Motorola 563xx
Unit V:Motorola 563xx
 
Mpmc
MpmcMpmc
Mpmc
 
Lec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processorLec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processor
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
Intel 64bit Architecture
Intel 64bit ArchitectureIntel 64bit Architecture
Intel 64bit Architecture
 
The sparc architecture (3)
The sparc architecture (3)The sparc architecture (3)
The sparc architecture (3)
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
Lecture 04 branch call and time delay
Lecture 04  branch call and time delayLecture 04  branch call and time delay
Lecture 04 branch call and time delay
 
Intel IA 64
Intel IA 64Intel IA 64
Intel IA 64
 

Similaire à 8 bit Microprocessor with Single Vectored Interrupt

Microprocessor (1)
Microprocessor (1)Microprocessor (1)
Microprocessor (1)
Muhd Azlan
 

Similaire à 8 bit Microprocessor with Single Vectored Interrupt (20)

4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
 
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
 
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMAn Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
 
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
 
microprocessor
 microprocessor microprocessor
microprocessor
 
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
 
DSP Processor.pptx
DSP Processor.pptxDSP Processor.pptx
DSP Processor.pptx
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Microprocessor (1)
Microprocessor (1)Microprocessor (1)
Microprocessor (1)
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Architecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP ProcessorArchitecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP Processor
 
Micro processor
Micro processorMicro processor
Micro processor
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
Ch2 embedded processors-i
Ch2 embedded processors-iCh2 embedded processors-i
Ch2 embedded processors-i
 
VJITSk 6713 user manual
VJITSk 6713 user manualVJITSk 6713 user manual
VJITSk 6713 user manual
 
U I - 4. 80386 Real mode.pptx
U I - 4. 80386 Real mode.pptxU I - 4. 80386 Real mode.pptx
U I - 4. 80386 Real mode.pptx
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
20120140502007 2-3
20120140502007 2-320120140502007 2-3
20120140502007 2-3
 

Plus de Hardik Manocha

Plus de Hardik Manocha (10)

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

Dernier

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 

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)