SlideShare a Scribd company logo
4
Most read
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1753
Design and Implementation of Pipelined 8-Bit RISC Processor using
Verilog HDL on FPGA
Akshatha S Patil, B G Shivaleelavathi
M. Tech, (VLSI Design and Embedded Systems), JSSATE, Bengaluru, Karnataka, India
Professor, Dept. of ECE, JSSATE, Bengaluru, Karnataka, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - This paper describes an eight-bit RISC processor
design, the usage of Verilog hardware Description Language
(HDL) on FPGA board. The proposed 8-bit RISC processormay
be carried out with the help of separate data and instruction
memory i.e. Harvard structure. Thecriticalfeatureofproposed
RISC processor architecture is pipelining, it is used for
boosting the general performance, such that on each clock
cycle one instruction can be performed. Another feature is
that the proposed RISC processor which can be very compact,
simple and clean to investigate and contains 24 instructions.
The proposed RISC processor architecture two 8-bit I/O ports,
arithmetic and logical unit serial-in/serial-out ports, eight 8-
bit widespread cause registers, 4-bit flag sign up and priority
based totally 3 vectored interrupts. The processor code is
synthesized on Spartan 3E Starter Board FPGA.
Key Words: Harvard structure, Pipelining, Registers,
Instruction Set, Interrupts.
1. INTRODUCTION
In an embedded machine, so called the reconfigurable
processor has extended significantly in the course of long
time. A computer architecture which is called as
reconfigurable computing in which it has been associated
with the strength of software program with the total
hardware performance with the resource of processing
which is very useful and versatile for computing
programmable arrays.
In this project, we are going to instruct the processor that
what all operations have to be performed. In any processor
there will be an instruction set architecture according to
which instructions are given and specific operations are
performed. Like all the processors, this RISC processorhasa
unique instruction set which is different from all the other
processors. The instructions are given in the program and
the particular operation will be performed according to the
given instruction.
The instructions will be stored in the Instruction Memory
and the values will be stored in the registers. The registers
used in this processor are 8-bit. The instruction should be
written in the program and the program will be executed.
The output obtained will be desired output according to
input given.
For example, if we give 0990, addition operation will be
performed according to this unique instruction set
architecture, especially for this proposed RISC processor.
And in the similar way operations like subtraction, AND, OR,
XOR, etc. can be performed.
And even we can perform operations like load, jump and
branching instructions. ModelSim is the software which is
used to execute the programs. The programs written will be
dumped on to an FPGA board and then simulation results
will be obtained.
2. PROCESSOR ARCHITECTURE
The processor is designed with the help of having separate
data and instruction memory. The processor architecture
describes the complete architecture of proposed system. It
consists of eight-bit ALU, two eight-bit I/O ports and8eight-
bit trendy registers, three interrupts, serial-in/serial-out
ports and 4-bit flag sign up having zero flag (Z), carry flag
(C), borrow flag (B) and parity flag (P).
The processor works at 2.5 voltages deliver 25MHz clock
frequency. For transferring statistics among extraordinary
modules 8-bit system bus is used. To maintain the
mathematics and logical operations aneightbitaccumulator
is used. For speaking among exclusive modules the
instruction and facts reminiscence have exquisite buses.
The interrupt module consists of 3 interrupts, which might
be precedence based totally and one of the interrupt is
masks in a position. The architecture having 34 instructions
in the instruction set which are probably clean and clean to
research. Serial module enables entire duplex serial
conversation with the assist of UART protocol.
Unique modules can be clocked, which uses clock gating,
awesome whilst requiredfor decreaseofthe energy.Loading
to the registers takes place in unspecified amount of time.
The modules which useclock gatingarerecordsmemoryand
preferred purpose registers.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1754
Fig: Processor Architecture
3. PIPELINE ARCHITECTURE
With the help of pipelining computer architectureallowsthe
next instruction to be fetched while the processor is
performing on anotherinstruction.Pipeliningisthesame old
trait used in RISC processor for enhancing the performance
and to reduce execution time in keeping with instruction.
Fig: Pipelining
The processor requires clock cycles for the execution of the
fetch execution cycle such that they're collectively special.
While executing one instruction next instruction is being
fetched, such that on each and every clock cycle one of the
instructions will be carried out.
4. FUNCTIONAL MODULES
The important blocks of the proposed processor are
Instruction and Data Memory, Register set, I/O Module,
Program Counter Unit, Control Unit, Arithmetic and Logical
Unit, Interrupt Module and Serial Module.
4.1 Program Counter Unit
Software counter unit consists of Program CounterRegister,
Program Counter, Program Counter Save and STACK PC. In
this proposed processor PCR is used to keep the deal with of
the preparation, while leap is carried out. Program Counter
that is a sixteen-bittremendousregisters whichincorporates
the cope with being executed on the modern-day-day time.
As one of the instructions is being fetched, the counter will
growth the stored price with the aid of manner of element
one. Throughout the fetch cycle, IM ADDRBUS,an18-bitdeal
with bus transfers the program counter content material to
guidance reminiscence (IM) while the corresponding sign is
enabled. PCS shops 18-bit. Whilst SAV practice is completed
application counter (PC) is incremented withtheaidofusing
values. All through the execution of the interrupt provider
routine, STACKPC is used to store the current value of PC.
4.2 Instruction memory
Instruction Memory having 262,144addresslocationsandis
16-bit wide.
4.3 Control Unit
The control unit consists of IR, IRX, tstate counter, Low
energy Unit (LPU) and decoder. All through fetch cycle, IR
gets the acknowledgement for decoding. IR content must be
stored in another register for the execution because during
execution of one instruction subsequent instruction is being
fetched. All through each rising fringe of the clock of
execution cycle, IR content material is moved to IRX. A fetch
and execution cycle is probably generated for the proper
operating of the processor. Atthegrowingfringeoftheclock,
TF1 (fetch cycle), TX1 (execution cycle), TX2 (execution
cycle 2 for branching education) are generated. Inside the
tstate counter module pipelining function is implemented.
Interrupt precedence and exceptions in instructions, like
soar, also are considered in tstatecountermodule.Eachtime
IRX is loaded with a valid instruction, decoder will generate
manage signals required for the modules. In LPU of manage
Unit, clock gating for facts reminiscence and extensive
purpose take a look at in set are carried out. Manage Unit
(Control Unit) will obtain inputs from Serial Module,
Interrupt Module and flag sign up. For the properworking of
the modules, manage unit will take input clock from supply
clock of FPGA and generate manipulate indicators and clock
signals. The clock alerts embody gated clock signs for sign in
set and statistics reminiscence modules, baudpriceclock for
serial module and 25MMHz output clock sign for all the
different modules. Clock gating is speciallyusedtolessen the
energy dissipation. The number one memory elements,
records memory and join up set, so simplest gated clock are
supplied to these modules. If there can be a loading to the
memory/stylish –purpose sign within the corresponding
module may be activated.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1755
4.4 Data Memory (DM)
Memory having 4096cope(instruction)withlocationsandis
8-bit extensive. And it receives the specified location with
the help of bus referred to as DM ADDRBUS that's 12-bit
wide from the manipulate unit. Examine and write can be
accessed by means of information bus called machine
_DATABUS (SYSTEM) which is 8-bit extensive.
4.5 Arithmetic and Logical Unit (ALU)
ALU includes AND, OR, XOR, ADD, SUB operations. ALU will
be connected to the Accumulator and trendy registers
through its 8-bit buses ALU DATABUS A and ALU DATABUS
B. Accumulator stores the result of the operation. The four-
bit flag sign in shops the zero flag (Z), carry flag (C), and
borrow flag (B) and parity flag. Parity flag can be set while
resultant of ALU operation consists of peculiar wide variety
of ones.
4.6 Accumulator
Accumulator is a vital part of the proposed processor, as
information (data) transfer that's 8-bit considerable, ALU
operations and that I/O operation takes via it. For sending
the facts required for transmission through serial-out port
and storing the information obtained via serial-in-port
accumulator is installed to serial module. Accumulator
additionally contains increment, decrement, and
compliment, rotate right and rotate left operations.
4.7 Register Set
Registers are used for storing the facts that are regularly
used. The sign up set contains eight eight-bit registers R0,
R1, R2, R3, R4, R5, R6, and R7. ALU is attached to Register
Set for arithmetic and logical operations. For loading and
storing the records its miles connected to
SYSTEM_DATABUS.
4.8 Interrupt Module
The interrupt module consists of one timer interrupt and
two outside (external)interruptsI0andI1.Interruptmodule
as proposed on this RISC structure is based totally on
priority, outdoor interrupt I0 is having maximum
precedence and I1 is having least priority. I0 interrupt isn't
mask successful and I1 interrupt is mask in a position. To
govern the competencies, interrupt module is having a 3-bit
check in INTCON. For permitting and disabling timer
interrupt bit 2 is used, bit 1 is used for allowing and
disabling the outdoor interrupts and bit 0 is used for
shielding I1. Timer module has 10-bit TIMER sign in to
depend the predefined c program language period. TMF0
flag receives set while the register reaches the maximum
charges. To clean the TMF0 flag CLRTMRF is used.
4.9 I/O Modules
The module has one 8-bit input portandoneeight-bitoutput
port for speaking with external environment. The input and
output port are externally connected to accumulator.Whilst
manage (control) signals are enabledrecordswill transfer to
and from the accumulator.
4.10 Serial Module
The serial conversation is full duplex that itcantransmitand
obtain simultaneously, primarily based on UART protocol.
The serial module carries rxin as serial-in-port and txout as
serial-out port. The baud charge used is 115200. The
statistics transmission starts with a startbitof0,followed by
way of the information bits of the word with the Least full-
size Bit (LSB) being dispatched first after which is being
dispatched.
TBUFF and RBUFF are the 8-bit registersusedforstoringthe
information both during transmission and reception during
serial communication. The facts stored in TBUFF register is
shifted out throughout serial facts transmissionandmanner
is vice versa for RBUFF register. The baud price is supplied
by means of the manipulate unit required for the serial
verbal exchange.
5. INSTRUCTION SET ARCHITECTURE
In this proposed RISC architecture four different types of
instructions are present, arithmetic and logical instructions,
branching instructions, data transfer instructions, machine
control and I/O instructions.
8 registers in the register file for the processor, numbered 0
to 7. Table 1 summarizes the 8 register conventions
processor.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1756
6. EXPECTED RESULTS AND OUTCOMES
The simulation results have been performed by Modelsim
and synthesis using Xilinx Spartan 3E Starter Board FPGA.
Instructions are derived from the Op code table, for a code
snippet, the code snippet which we haveconsideredisa loop
as show below
Instruction derived based on the instructions
6.1 Simulation Results
6.2 Simulation Log for the code
Code:
6.3 ADVANTAGES
 The processor achieves higher performance.
 Lower area.
 Compact in size.
 Low power dissipation.
 Achieve highest system speed.
 Reduces power, cost and complexity.
 Fast concurrent programming.
 Reconfigurable of logic is possible.
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to my
teacher Dr. B. G. Shivaleelavathi, ProfessorandGuide,aswell
as our Principal, Dr. Mrityunjaya V. Latte who gave me an
opportunity to do this project on the topic “Design and
Implementation of 8-bit RISC Processor using Verilog HDL
on FPGA “, which helped me to know so many things. I am
really thankful to them.
REFERENCES
[1] H.Dao and V.G.Oklobdzija. “Application of logical effort
techniques for speed optimization and analysis of
representative adders”. In 35th annual Asilomar Conference
on Signal, Systems and Computers.
[2] A.Farooqui, V.G.Oklobdzija and F.Chehrazi. Multiplexer
based adder for media signal processing. In International
Symposium on VLSI Technology, Systems and
Applications,1999.
[3] T.Han, D.A. Carlson, and S.P.Levitan. “VLSIdesignofhigh-
speed low-area addition circuitry”. In Proceedings of the
IEEE International Conference on Computer Design: VLSI in
computers processors.
[4].S. Knowles. A family of adders. In IEEE symposium on
Computer Arithmetic.
[5] P.M.Kogge and H.S.Stone. A parallel algorithm for the
efficient solution of a general class of recurrence equations.
In IEEE Transactions on computers.
Ad

Recommended

PDF
EE8551 MPMC
rmkceteee
 
DOC
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
PPTX
8085 microprocessor
Anuja Gunale
 
PDF
Microprocessor & Microcontoller short questions with answers
Mathankumar S
 
PPT
Introduction to 8085 microprocessor
venkateshkannat
 
PDF
Intel 8080 8085 assembly language programming 1977 intel
Omar Alkinani
 
PDF
Introduction to 8085svv
Shivashekharayya Viraktamath
 
PPTX
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PPTX
PPT 8085 microprocessor
Ardhendupanja
 
PPT
8085 microproceesor ppt
RJ Aniket
 
DOC
8085 micro processor- notes
Dr.YNM
 
PDF
20838382 microprocessor-8085-notes
Manikanteswar Madala
 
PDF
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
PPTX
Introduction to microprocessor
RamaPrabha24
 
PPTX
Unit 1 8085 Timing diagram - lecture 5b
Dickson Nkongo
 
PPT
Demultiplexing of buses of 8085 microprocessor
Rajal Patel
 
PDF
Over view of Microprocessor 8085 and its application
iosrjce
 
PDF
Embedded systems notes
Shikha Sharma
 
PDF
Interrupts of microprocessor 8085
Nilesh Bhaskarrao Bahadure
 
PDF
Microcontroller pic 16f877 architecture and basics
Nilesh Bhaskarrao Bahadure
 
PPT
Unit 1
Padmanaban 1178
 
PDF
8085 microprocessor notes
AdiseshaK
 
DOCX
Embedded systems class notes
Dr.YNM
 
PPTX
Microprocessor 8085 complete
Shubham Singh
 
PDF
EE6008 MBSD
rmkceteee
 
PDF
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET Journal
 
PDF
IJCRT2006062.pdf
ssuser1e1bab
 
PDF
20120140502007 2-3
IAEME Publication
 

More Related Content

What's hot (19)

PPTX
PPT 8085 microprocessor
Ardhendupanja
 
PPT
8085 microproceesor ppt
RJ Aniket
 
DOC
8085 micro processor- notes
Dr.YNM
 
PDF
20838382 microprocessor-8085-notes
Manikanteswar Madala
 
PDF
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
PPTX
Introduction to microprocessor
RamaPrabha24
 
PPTX
Unit 1 8085 Timing diagram - lecture 5b
Dickson Nkongo
 
PPT
Demultiplexing of buses of 8085 microprocessor
Rajal Patel
 
PDF
Over view of Microprocessor 8085 and its application
iosrjce
 
PDF
Embedded systems notes
Shikha Sharma
 
PDF
Interrupts of microprocessor 8085
Nilesh Bhaskarrao Bahadure
 
PDF
Microcontroller pic 16f877 architecture and basics
Nilesh Bhaskarrao Bahadure
 
PPT
Unit 1
Padmanaban 1178
 
PDF
8085 microprocessor notes
AdiseshaK
 
DOCX
Embedded systems class notes
Dr.YNM
 
PPTX
Microprocessor 8085 complete
Shubham Singh
 
PDF
EE6008 MBSD
rmkceteee
 
PPT 8085 microprocessor
Ardhendupanja
 
8085 microproceesor ppt
RJ Aniket
 
8085 micro processor- notes
Dr.YNM
 
20838382 microprocessor-8085-notes
Manikanteswar Madala
 
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
Introduction to microprocessor
RamaPrabha24
 
Unit 1 8085 Timing diagram - lecture 5b
Dickson Nkongo
 
Demultiplexing of buses of 8085 microprocessor
Rajal Patel
 
Over view of Microprocessor 8085 and its application
iosrjce
 
Embedded systems notes
Shikha Sharma
 
Interrupts of microprocessor 8085
Nilesh Bhaskarrao Bahadure
 
Microcontroller pic 16f877 architecture and basics
Nilesh Bhaskarrao Bahadure
 
8085 microprocessor notes
AdiseshaK
 
Embedded systems class notes
Dr.YNM
 
Microprocessor 8085 complete
Shubham Singh
 
EE6008 MBSD
rmkceteee
 

Similar to Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL on FPGA (20)

PDF
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET Journal
 
PDF
IJCRT2006062.pdf
ssuser1e1bab
 
PDF
20120140502007 2-3
IAEME Publication
 
PDF
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
IAEME Publication
 
PDF
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
ssuser1e1bab
 
PDF
Fpga implementation of a functional microcontroller
eSAT Publishing House
 
PDF
Thesis report 16 bit RISC processor
anuruddhsharma1
 
PDF
Hg3612911294
IJERA Editor
 
PDF
Design and development of a 5-stage Pipelined RISC processor based on MIPS
IRJET Journal
 
PDF
cd-2-Batch id-33
Harisha Chowdary
 
PPTX
Reduced instructions set computing for modern device.
sourav7381jha
 
PDF
Dm25671674
IJERA Editor
 
PDF
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
journalBEEI
 
PDF
IRJET- To Design 16 bit Synchronous Microprocessor using VHDL on FPGA
IRJET Journal
 
PDF
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
IRJET Journal
 
PDF
A044050107
IJERA Editor
 
PDF
A0220105
IOSR Journals
 
PDF
W04505116121
IJERA Editor
 
PDF
Bv4301417422
IJERA Editor
 
PDF
Review paper on 32-BIT RISC processor with floating point arithmetic
IRJET Journal
 
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET Journal
 
IJCRT2006062.pdf
ssuser1e1bab
 
20120140502007 2-3
IAEME Publication
 
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
IAEME Publication
 
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
ssuser1e1bab
 
Fpga implementation of a functional microcontroller
eSAT Publishing House
 
Thesis report 16 bit RISC processor
anuruddhsharma1
 
Hg3612911294
IJERA Editor
 
Design and development of a 5-stage Pipelined RISC processor based on MIPS
IRJET Journal
 
cd-2-Batch id-33
Harisha Chowdary
 
Reduced instructions set computing for modern device.
sourav7381jha
 
Dm25671674
IJERA Editor
 
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
journalBEEI
 
IRJET- To Design 16 bit Synchronous Microprocessor using VHDL on FPGA
IRJET Journal
 
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
IRJET Journal
 
A044050107
IJERA Editor
 
A0220105
IOSR Journals
 
W04505116121
IJERA Editor
 
Bv4301417422
IJERA Editor
 
Review paper on 32-BIT RISC processor with floating point arithmetic
IRJET Journal
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

PDF
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
PPTX
MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
SAMEER VISHWAKARMA
 
PPTX
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
PPTX
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
PPTX
Introduction to Python Programming Language
merlinjohnsy
 
PPTX
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
PDF
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
PDF
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
PPTX
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
PPTX
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
PPTX
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
PPTX
Mobile database systems 20254545645.pptx
herosh1968
 
PPTX
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
PDF
Complete guidance book of Asp.Net Web API
Shabista Imam
 
PDF
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
PDF
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
PPTX
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
PDF
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
PDF
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
PPTX
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
SAMEER VISHWAKARMA
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
Introduction to Python Programming Language
merlinjohnsy
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
Mobile database systems 20254545645.pptx
herosh1968
 
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
Structural Wonderers_new and ancient.pptx
nikopapa113
 

Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL on FPGA

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1753 Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL on FPGA Akshatha S Patil, B G Shivaleelavathi M. Tech, (VLSI Design and Embedded Systems), JSSATE, Bengaluru, Karnataka, India Professor, Dept. of ECE, JSSATE, Bengaluru, Karnataka, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - This paper describes an eight-bit RISC processor design, the usage of Verilog hardware Description Language (HDL) on FPGA board. The proposed 8-bit RISC processormay be carried out with the help of separate data and instruction memory i.e. Harvard structure. Thecriticalfeatureofproposed RISC processor architecture is pipelining, it is used for boosting the general performance, such that on each clock cycle one instruction can be performed. Another feature is that the proposed RISC processor which can be very compact, simple and clean to investigate and contains 24 instructions. The proposed RISC processor architecture two 8-bit I/O ports, arithmetic and logical unit serial-in/serial-out ports, eight 8- bit widespread cause registers, 4-bit flag sign up and priority based totally 3 vectored interrupts. The processor code is synthesized on Spartan 3E Starter Board FPGA. Key Words: Harvard structure, Pipelining, Registers, Instruction Set, Interrupts. 1. INTRODUCTION In an embedded machine, so called the reconfigurable processor has extended significantly in the course of long time. A computer architecture which is called as reconfigurable computing in which it has been associated with the strength of software program with the total hardware performance with the resource of processing which is very useful and versatile for computing programmable arrays. In this project, we are going to instruct the processor that what all operations have to be performed. In any processor there will be an instruction set architecture according to which instructions are given and specific operations are performed. Like all the processors, this RISC processorhasa unique instruction set which is different from all the other processors. The instructions are given in the program and the particular operation will be performed according to the given instruction. The instructions will be stored in the Instruction Memory and the values will be stored in the registers. The registers used in this processor are 8-bit. The instruction should be written in the program and the program will be executed. The output obtained will be desired output according to input given. For example, if we give 0990, addition operation will be performed according to this unique instruction set architecture, especially for this proposed RISC processor. And in the similar way operations like subtraction, AND, OR, XOR, etc. can be performed. And even we can perform operations like load, jump and branching instructions. ModelSim is the software which is used to execute the programs. The programs written will be dumped on to an FPGA board and then simulation results will be obtained. 2. PROCESSOR ARCHITECTURE The processor is designed with the help of having separate data and instruction memory. The processor architecture describes the complete architecture of proposed system. It consists of eight-bit ALU, two eight-bit I/O ports and8eight- bit trendy registers, three interrupts, serial-in/serial-out ports and 4-bit flag sign up having zero flag (Z), carry flag (C), borrow flag (B) and parity flag (P). The processor works at 2.5 voltages deliver 25MHz clock frequency. For transferring statistics among extraordinary modules 8-bit system bus is used. To maintain the mathematics and logical operations aneightbitaccumulator is used. For speaking among exclusive modules the instruction and facts reminiscence have exquisite buses. The interrupt module consists of 3 interrupts, which might be precedence based totally and one of the interrupt is masks in a position. The architecture having 34 instructions in the instruction set which are probably clean and clean to research. Serial module enables entire duplex serial conversation with the assist of UART protocol. Unique modules can be clocked, which uses clock gating, awesome whilst requiredfor decreaseofthe energy.Loading to the registers takes place in unspecified amount of time. The modules which useclock gatingarerecordsmemoryand preferred purpose registers.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1754 Fig: Processor Architecture 3. PIPELINE ARCHITECTURE With the help of pipelining computer architectureallowsthe next instruction to be fetched while the processor is performing on anotherinstruction.Pipeliningisthesame old trait used in RISC processor for enhancing the performance and to reduce execution time in keeping with instruction. Fig: Pipelining The processor requires clock cycles for the execution of the fetch execution cycle such that they're collectively special. While executing one instruction next instruction is being fetched, such that on each and every clock cycle one of the instructions will be carried out. 4. FUNCTIONAL MODULES The important blocks of the proposed processor are Instruction and Data Memory, Register set, I/O Module, Program Counter Unit, Control Unit, Arithmetic and Logical Unit, Interrupt Module and Serial Module. 4.1 Program Counter Unit Software counter unit consists of Program CounterRegister, Program Counter, Program Counter Save and STACK PC. In this proposed processor PCR is used to keep the deal with of the preparation, while leap is carried out. Program Counter that is a sixteen-bittremendousregisters whichincorporates the cope with being executed on the modern-day-day time. As one of the instructions is being fetched, the counter will growth the stored price with the aid of manner of element one. Throughout the fetch cycle, IM ADDRBUS,an18-bitdeal with bus transfers the program counter content material to guidance reminiscence (IM) while the corresponding sign is enabled. PCS shops 18-bit. Whilst SAV practice is completed application counter (PC) is incremented withtheaidofusing values. All through the execution of the interrupt provider routine, STACKPC is used to store the current value of PC. 4.2 Instruction memory Instruction Memory having 262,144addresslocationsandis 16-bit wide. 4.3 Control Unit The control unit consists of IR, IRX, tstate counter, Low energy Unit (LPU) and decoder. All through fetch cycle, IR gets the acknowledgement for decoding. IR content must be stored in another register for the execution because during execution of one instruction subsequent instruction is being fetched. All through each rising fringe of the clock of execution cycle, IR content material is moved to IRX. A fetch and execution cycle is probably generated for the proper operating of the processor. Atthegrowingfringeoftheclock, TF1 (fetch cycle), TX1 (execution cycle), TX2 (execution cycle 2 for branching education) are generated. Inside the tstate counter module pipelining function is implemented. Interrupt precedence and exceptions in instructions, like soar, also are considered in tstatecountermodule.Eachtime IRX is loaded with a valid instruction, decoder will generate manage signals required for the modules. In LPU of manage Unit, clock gating for facts reminiscence and extensive purpose take a look at in set are carried out. Manage Unit (Control Unit) will obtain inputs from Serial Module, Interrupt Module and flag sign up. For the properworking of the modules, manage unit will take input clock from supply clock of FPGA and generate manipulate indicators and clock signals. The clock alerts embody gated clock signs for sign in set and statistics reminiscence modules, baudpriceclock for serial module and 25MMHz output clock sign for all the different modules. Clock gating is speciallyusedtolessen the energy dissipation. The number one memory elements, records memory and join up set, so simplest gated clock are supplied to these modules. If there can be a loading to the memory/stylish –purpose sign within the corresponding module may be activated.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1755 4.4 Data Memory (DM) Memory having 4096cope(instruction)withlocationsandis 8-bit extensive. And it receives the specified location with the help of bus referred to as DM ADDRBUS that's 12-bit wide from the manipulate unit. Examine and write can be accessed by means of information bus called machine _DATABUS (SYSTEM) which is 8-bit extensive. 4.5 Arithmetic and Logical Unit (ALU) ALU includes AND, OR, XOR, ADD, SUB operations. ALU will be connected to the Accumulator and trendy registers through its 8-bit buses ALU DATABUS A and ALU DATABUS B. Accumulator stores the result of the operation. The four- bit flag sign in shops the zero flag (Z), carry flag (C), and borrow flag (B) and parity flag. Parity flag can be set while resultant of ALU operation consists of peculiar wide variety of ones. 4.6 Accumulator Accumulator is a vital part of the proposed processor, as information (data) transfer that's 8-bit considerable, ALU operations and that I/O operation takes via it. For sending the facts required for transmission through serial-out port and storing the information obtained via serial-in-port accumulator is installed to serial module. Accumulator additionally contains increment, decrement, and compliment, rotate right and rotate left operations. 4.7 Register Set Registers are used for storing the facts that are regularly used. The sign up set contains eight eight-bit registers R0, R1, R2, R3, R4, R5, R6, and R7. ALU is attached to Register Set for arithmetic and logical operations. For loading and storing the records its miles connected to SYSTEM_DATABUS. 4.8 Interrupt Module The interrupt module consists of one timer interrupt and two outside (external)interruptsI0andI1.Interruptmodule as proposed on this RISC structure is based totally on priority, outdoor interrupt I0 is having maximum precedence and I1 is having least priority. I0 interrupt isn't mask successful and I1 interrupt is mask in a position. To govern the competencies, interrupt module is having a 3-bit check in INTCON. For permitting and disabling timer interrupt bit 2 is used, bit 1 is used for allowing and disabling the outdoor interrupts and bit 0 is used for shielding I1. Timer module has 10-bit TIMER sign in to depend the predefined c program language period. TMF0 flag receives set while the register reaches the maximum charges. To clean the TMF0 flag CLRTMRF is used. 4.9 I/O Modules The module has one 8-bit input portandoneeight-bitoutput port for speaking with external environment. The input and output port are externally connected to accumulator.Whilst manage (control) signals are enabledrecordswill transfer to and from the accumulator. 4.10 Serial Module The serial conversation is full duplex that itcantransmitand obtain simultaneously, primarily based on UART protocol. The serial module carries rxin as serial-in-port and txout as serial-out port. The baud charge used is 115200. The statistics transmission starts with a startbitof0,followed by way of the information bits of the word with the Least full- size Bit (LSB) being dispatched first after which is being dispatched. TBUFF and RBUFF are the 8-bit registersusedforstoringthe information both during transmission and reception during serial communication. The facts stored in TBUFF register is shifted out throughout serial facts transmissionandmanner is vice versa for RBUFF register. The baud price is supplied by means of the manipulate unit required for the serial verbal exchange. 5. INSTRUCTION SET ARCHITECTURE In this proposed RISC architecture four different types of instructions are present, arithmetic and logical instructions, branching instructions, data transfer instructions, machine control and I/O instructions. 8 registers in the register file for the processor, numbered 0 to 7. Table 1 summarizes the 8 register conventions processor.
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1756 6. EXPECTED RESULTS AND OUTCOMES The simulation results have been performed by Modelsim and synthesis using Xilinx Spartan 3E Starter Board FPGA. Instructions are derived from the Op code table, for a code snippet, the code snippet which we haveconsideredisa loop as show below Instruction derived based on the instructions 6.1 Simulation Results 6.2 Simulation Log for the code Code: 6.3 ADVANTAGES  The processor achieves higher performance.  Lower area.  Compact in size.  Low power dissipation.  Achieve highest system speed.  Reduces power, cost and complexity.  Fast concurrent programming.  Reconfigurable of logic is possible. ACKNOWLEDGEMENT I would like to express my special thanks of gratitude to my teacher Dr. B. G. Shivaleelavathi, ProfessorandGuide,aswell as our Principal, Dr. Mrityunjaya V. Latte who gave me an opportunity to do this project on the topic “Design and Implementation of 8-bit RISC Processor using Verilog HDL on FPGA “, which helped me to know so many things. I am really thankful to them. REFERENCES [1] H.Dao and V.G.Oklobdzija. “Application of logical effort techniques for speed optimization and analysis of representative adders”. In 35th annual Asilomar Conference on Signal, Systems and Computers. [2] A.Farooqui, V.G.Oklobdzija and F.Chehrazi. Multiplexer based adder for media signal processing. In International Symposium on VLSI Technology, Systems and Applications,1999. [3] T.Han, D.A. Carlson, and S.P.Levitan. “VLSIdesignofhigh- speed low-area addition circuitry”. In Proceedings of the IEEE International Conference on Computer Design: VLSI in computers processors. [4].S. Knowles. A family of adders. In IEEE symposium on Computer Arithmetic. [5] P.M.Kogge and H.S.Stone. A parallel algorithm for the efficient solution of a general class of recurrence equations. In IEEE Transactions on computers.