SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3197
Design of Low Power 32- Bit RISC Processor using Verilog HDL
Surya A
Assistant Professor, Department of Electronics and communication Engineering
Anjalai Ammal Mahalingam Engineering College, Thiruvarur
---------------------------------------------------------------------***----------------------------------------------------------------------
Abstract - The RISC or Reduced Instruction Set Computer is a design philosophy thathasbecomeamainstreaminScientificand
engineering applications. This paper concerned with the design and implementation of a 32bitReduced InstructionSet Computer
(RISC) processor on a Field Programmable Gate Arrays (FPGAs). The idea is to createaRISCprocessorasabuildingblockinVHDL
than later easily can be included in a larger design. It will be useful in systems where aproblem iseasytosolveinsoftwarebuthard
to solve with control logic. The processor has been designed with Verilog HDL, synthesized using Xilinx ISE 10.1i Webpack,
simulated using MODELSIM 6.3f simulator, and then implemented on Xilinx Spartan 3E FPGA. The test bench waveforms for the
different parts of the processor are presented and the system architecture is demonstrated. The development approach of the
overall system design depends on the design specification, analysis and simulation. The RISC Processor core is high performance
32- bit microprocessor. This processor make it especially suited to embedded control applications.
KeyWords: fetch, read.write, power, verilog HDL, xilinx, Modelsim
1. INTRODUCTION
RISC processor [Reduced Instruction Set Computer], computer arithmetic-logic unit that uses a minimal instruction set,
emphasizing the instructions used most often and optimizing them for the fastest possible execution. Software for RISC
processors must handle more operations than traditional CISC [Complex Instruction Set Computer] processors, but RISC
processors have advantages in applications that benefit from faster instruction execution, such as engineering and graphics
workstations(1) and parallel-processing systems. They are also less costly to design, test, and manufacture. In the mid-1990s
RISC processors began to be used in personal computers instead of the CISC processors that had been used since the
introduction of the microprocessor.
Reduced instruction set computer is a CPU design strategybasedontheinsightthatsimplifiedinstructionscanprovidehigher
performance if this simplicity enables much faster execution of each instruction. There are many proposals for a precise
definition but the term is slowly being replaced by the more descriptive load-store architecture.
1.1 KEY FEATURES:
Uniform instruction format, using a single word with the opcode in the same bit positions in every instruction,demandingless
decoding
Identical general purpose registers, allowing any register to be used in any context, simplifying compiler design
Simple addressing modes. Complex addressing performed via sequences of arithmetic and/or load-store operations.
Few data types in hardware, some CISCs have byte string instructions, or support complexnumbers;thisissofarunlikelytobe
found on a RISC.
Fewer Instructions
Fixed instruction length
Fixed execution time
Lower Cost
2. SYSTEM ARCHITECTURE
The RISC processor (2)presented in this paper consists of three components as shown in Figure .1, these components
are, the Control Unit (CU), the DataPath, and the ROM. The Central Processing Unit (CPU) has 17 instructions. In the
following sections we will describe the design of the three main components of the processor.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3198
Control unit
Datapath unit
Memory unit
Figure 1. System Architecture
2.1 CONTOL UNIT:
The control unit designis based on using FSM(FiniteStateMachine)anddesigneditinwaythatallowseachstatetorun
at one clock cycle ,the first state is the reset which is initializes the CPU internal registers and variables. The machine
goes to reset state by enabling the reset signal for a certain number of clocks. Following the reset state would be the
instruction fetching and decoding states which will enabletheappropriatesignalsforreadinginstructiondatafromtheROM the
decoding the part of the instruction. The decoding state will also select the next state depending on the instruction, every
instruction has its own state .Based on the instruction ,the control unit select the appropriatestate. After all operationfor given
instruction finished, the last state return to fetch state which will allow us to process the next instruction in the program.
2.2 DATAPATH UNIT
The datapath consist of subunits that are performing all ofarithmeticandlogicoperations.Itconsistoftheunitsnecessary
to perform all the operations on the data selected by the control unit. It consist of register file, ALU, memory interface and
branching unit. A datapath is a hardware that performs data processing operations, the control lines coming from the control
unit operate all the units in the datapath .The path starts from the register filethathastwooutputportswhichareconnectedto
all other units, after that the processing is done by one of the other units thenfinallyreturnedback totheregisterfile inputport
using the multiplexer. The signals used in the datapath are forwarded from the control unit to each subcomponents needed.
2.3 MEMORY UNIT
The CPU has a built in ROM which enable us to program simple code and execute it. It is a basic 16*32 ROM and itis32bit
aligned. The list of signals in the ROMare
Address -address sent by the control unity.
Data_out - data that is contained the given address.
Read - signal to enable reading from the ROM.
Ready - signal to indicate when the ROM is ready for reading.
Clock -main clock signal.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3199
Reset - intial reset signal.
3. SYSTEM DESIGN
The processor is based on the Harvard architecture that any instruction occupies separatedpositionsofprogrammemoryand
data memory(6)(7). Thus obtaining greater speed and a minor program length, also, the access time to the instructions canbe
superposed with one of the data, obtaining a greater speed in each operation(8). The processor includes a RISCinstructionset
and uses a Single Instruction – Single Data (SISD) execution order.
Figure 2. System Design
4. STAGES OF OPERATION
The overall diagram of the processor architecture s shown in figure3. Asseenfromthe diagram,thearchitecture(3) consistsof
a five stage of operations.
i. Instruction Fetch
ii. Instruction Decode
iii. Execute
iv. Memory
v. Write Back
Figure 3. Data Flow Diagram
4.1 INSTRUCTION FETCH
In this fetch cycle, the instructions are stored in the instruction memory, that instruction is to be fetched from the instruction
memory. IR <= MEM[pc]
NPC <= pc+4
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3200
This stage consists of three units.Program Counter, Instruction Memory and Branch Decide Unit.
Figure 4. Block Diagram of Fetch Unit
4.2 INSTRUCTION DECODE
In this decode stage, instructiondecodeintooperandcodes,operandaddressinformation,control andthedestination
operand signal. This stage consists of four units Control Unit, Register Foley-Register and Sign Extend Unit.
Figure 5. Block Diagram Of Decode Unit
4.2.1 Control Unit:
The control unit generates(4) all the control signals needed to control the coordination among the entire component of the
processor. The input to this unit is the 6-bit opcode field of the instruction word. This unitgeneratessignalsthatcontrol all the
read and write operations of the Register File, Y-Register, and the Data Memory. It is also responsible for generating signals
that decide when to use the multiplier and when to use the ALU, and it also generates appropriatebranchflagsthatareused by
the Branch Decide unit. In addition, this unit provides clock gating signals for the ALU Control and the Branch Adder module.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3201
Figure 6. Block Diagram of Control Unit
4.3 EXECUTE
In this execution stage(5), the data from decode stage is tobeallowedfordata processing operations.This stageconsistsoffour
modules: Branch Adder, Multiplier, Arithmetic Logic Unit and ALU Control Unit.
Figure 7. Block Diagram Of Execute Unit
5. Instruction Set Architecture:
There are three basic types of instructions supported by this processor. Register Type, Branch Type and
Immediate Type.
The specification for each type of instructions is given below.
TABLE 1. Instruction Formats
The setting of control lines that are determined by opcode for three instruction formats
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3202
6. Simulation Results
Fetch Output
FetchBranch output
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3203
CONTROL UNIT OUTPUT
INTEGRATION OUTPUT:
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3204
7. CONCLUSION:
The design of 32-bit RISC processor has beenpresented..Herewehaveused nearlytwentyinstructions.Inthatwe
have arithmetic operations, logical operations, shift operations and load & store operations. Inour project, weimplementonly
8-bit Wallace tree multiplier and got output successfully. In future, it will enhance into 32-bit. By using MODELSIM 6.3f, the
simulation results have been taken for all individual units successfully Most of the goals were achieved and simulationshows
that the processor is working perfectly, but the Spartan 2E FPGA was not sufficient for implementing the whole design into a
real hardware, since the total available logic gate in Spartan 3 Logic Gate, which was not3.
REFERENCES
[1] W. Stallings, “organization and architecture of computer,” 7ªEditión, Pearson, 2006.
[2] M. Mano, “Architecture of computers,” 3ª Editión, Pearson, 1994.
[3] A.K.Ray, “Advanced Microprocessor And Peripherals”, 2nd Edition, Tata McGraw- Hill,2008
[4] D.V.Hall,“Microprocessor And Interfacing”, 2nd Edition, Tata McGraw-Hill,2006
[5] D. Mandalidis, P. Kenterlis, J. Ellinas, “A computer architecture educational system based on a 32-bit RISC processor,”
International Review on computers and Software, pp. 114-119, 2008.
[6] Tocci, Widmer, Moss, “Sistemas Digitales, Principios y aplicaciones,” 10ª Editión, Pearson, 2007. Antonio H. Zavala, Jorge
Avante R.,”RISC- Based Architecture for computer Hardware Introduction”.
[7] R. Uma, “Design and Performance Analysis of 8 – bit RISC Processorusing XilinxTool”, International Journal ofEngineering
Research and Applications, Volume 2, Issue 2, March – April 2012, pp. 053 – 058, ISSN: 2248 – 9622.
[8] N. M. Dyamannavra, N. G. kurahattib,A. Christinaa ,”Design and Implementation of Field Programmable Gate Array Based
Baseband Processor for Passive Radio Frequency Identification Tag”, IJE TRANSACTIONS A:BasicsVol.30,No.1,(January
2017) 127-133.

More Related Content

PPTX
Genetic algorithm
PPTX
Microoperations
PDF
Token, Pattern and Lexeme
PPTX
Arithmatic pipline
PPTX
8085 full discription
PPTX
Presentation on embedded system by abhishek sharma
PPTX
Finite state machines
PDF
DESIGN AND ANALYSIS OF A 32-BIT PIPELINED MIPS RISC PROCESSOR
Genetic algorithm
Microoperations
Token, Pattern and Lexeme
Arithmatic pipline
8085 full discription
Presentation on embedded system by abhishek sharma
Finite state machines
DESIGN AND ANALYSIS OF A 32-BIT PIPELINED MIPS RISC PROCESSOR

What's hot (20)

PPSX
Programming ATmega microcontroller using Embedded C
PDF
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
PPTX
Neural networks.ppt
PPTX
Hybrid systems
PPTX
AI_Session 13 Adversarial Search .pptx
PPTX
Computer organization
PPT
Genetic algorithms
PPT
carry look ahead adder
PDF
Multivariate decision tree
PDF
Turbo prolog 2.0 basics
PPTX
arithmetic logic unit
PPT
Genetic algorithm
PPTX
External memory - Computer Architecture
DOC
Snake game implementation in c
PPTX
PCI BUS
PPT
Finite automata
PPT
8.flip flops and registers
PDF
Synchronous sequential Circuits
PPTX
Turing Machine
PPT
Arithmetic Logic Unit (ALU)
Programming ATmega microcontroller using Embedded C
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Neural networks.ppt
Hybrid systems
AI_Session 13 Adversarial Search .pptx
Computer organization
Genetic algorithms
carry look ahead adder
Multivariate decision tree
Turbo prolog 2.0 basics
arithmetic logic unit
Genetic algorithm
External memory - Computer Architecture
Snake game implementation in c
PCI BUS
Finite automata
8.flip flops and registers
Synchronous sequential Circuits
Turing Machine
Arithmetic Logic Unit (ALU)
Ad

Similar to IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL (20)

PDF
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
PDF
20120140502007 2-3
PDF
Design and development of a 5-stage Pipelined RISC processor based on MIPS
PDF
Simulation and Modelling of 3-Floor Elevator System using PLC
PDF
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
PDF
A044050107
PDF
PDF
Realization of high performance run time loadable mips soft-core processor
PPTX
Design of a low power processor for Embedded system applications
PDF
Fpga implementation of a functional microcontroller
PDF
16-bit Microprocessor Design (2005)
PDF
IJCRT2006062.pdf
PDF
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
PDF
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
PDF
Hg3612911294
PDF
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
PDF
IRJET-Design of ARM Based Data Acquisition and Control System for Engine Asse...
PDF
3 Axis Drawing Machine
PDF
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
PDF
Development of Software for Estimation of Structural Dynamic Characteristics ...
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
20120140502007 2-3
Design and development of a 5-stage Pipelined RISC processor based on MIPS
Simulation and Modelling of 3-Floor Elevator System using PLC
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
A044050107
Realization of high performance run time loadable mips soft-core processor
Design of a low power processor for Embedded system applications
Fpga implementation of a functional microcontroller
16-bit Microprocessor Design (2005)
IJCRT2006062.pdf
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
Hg3612911294
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IRJET-Design of ARM Based Data Acquisition and Control System for Engine Asse...
3 Axis Drawing Machine
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Development of Software for Estimation of Structural Dynamic Characteristics ...
Ad

More from IRJET Journal (20)

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

Recently uploaded (20)

PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
PPT
Drone Technology Electronics components_1
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Internship_Presentation_Final engineering.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
AgentX UiPath Community Webinar series - Delhi
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
436813905-LNG-Process-Overview-Short.pptx
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
ETO & MEO Certificate of Competency Questions and Answers
Geodesy 1.pptx...............................................
composite construction of structures.pdf
Drone Technology Electronics components_1
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Operating System & Kernel Study Guide-1 - converted.pdf
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Internship_Presentation_Final engineering.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
AgentX UiPath Community Webinar series - Delhi
Embodied AI: Ushering in the Next Era of Intelligent Systems
436813905-LNG-Process-Overview-Short.pptx
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
ETO & MEO Certificate of Competency Questions and Answers

IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3197 Design of Low Power 32- Bit RISC Processor using Verilog HDL Surya A Assistant Professor, Department of Electronics and communication Engineering Anjalai Ammal Mahalingam Engineering College, Thiruvarur ---------------------------------------------------------------------***---------------------------------------------------------------------- Abstract - The RISC or Reduced Instruction Set Computer is a design philosophy thathasbecomeamainstreaminScientificand engineering applications. This paper concerned with the design and implementation of a 32bitReduced InstructionSet Computer (RISC) processor on a Field Programmable Gate Arrays (FPGAs). The idea is to createaRISCprocessorasabuildingblockinVHDL than later easily can be included in a larger design. It will be useful in systems where aproblem iseasytosolveinsoftwarebuthard to solve with control logic. The processor has been designed with Verilog HDL, synthesized using Xilinx ISE 10.1i Webpack, simulated using MODELSIM 6.3f simulator, and then implemented on Xilinx Spartan 3E FPGA. The test bench waveforms for the different parts of the processor are presented and the system architecture is demonstrated. The development approach of the overall system design depends on the design specification, analysis and simulation. The RISC Processor core is high performance 32- bit microprocessor. This processor make it especially suited to embedded control applications. KeyWords: fetch, read.write, power, verilog HDL, xilinx, Modelsim 1. INTRODUCTION RISC processor [Reduced Instruction Set Computer], computer arithmetic-logic unit that uses a minimal instruction set, emphasizing the instructions used most often and optimizing them for the fastest possible execution. Software for RISC processors must handle more operations than traditional CISC [Complex Instruction Set Computer] processors, but RISC processors have advantages in applications that benefit from faster instruction execution, such as engineering and graphics workstations(1) and parallel-processing systems. They are also less costly to design, test, and manufacture. In the mid-1990s RISC processors began to be used in personal computers instead of the CISC processors that had been used since the introduction of the microprocessor. Reduced instruction set computer is a CPU design strategybasedontheinsightthatsimplifiedinstructionscanprovidehigher performance if this simplicity enables much faster execution of each instruction. There are many proposals for a precise definition but the term is slowly being replaced by the more descriptive load-store architecture. 1.1 KEY FEATURES: Uniform instruction format, using a single word with the opcode in the same bit positions in every instruction,demandingless decoding Identical general purpose registers, allowing any register to be used in any context, simplifying compiler design Simple addressing modes. Complex addressing performed via sequences of arithmetic and/or load-store operations. Few data types in hardware, some CISCs have byte string instructions, or support complexnumbers;thisissofarunlikelytobe found on a RISC. Fewer Instructions Fixed instruction length Fixed execution time Lower Cost 2. SYSTEM ARCHITECTURE The RISC processor (2)presented in this paper consists of three components as shown in Figure .1, these components are, the Control Unit (CU), the DataPath, and the ROM. The Central Processing Unit (CPU) has 17 instructions. In the following sections we will describe the design of the three main components of the processor.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3198 Control unit Datapath unit Memory unit Figure 1. System Architecture 2.1 CONTOL UNIT: The control unit designis based on using FSM(FiniteStateMachine)anddesigneditinwaythatallowseachstatetorun at one clock cycle ,the first state is the reset which is initializes the CPU internal registers and variables. The machine goes to reset state by enabling the reset signal for a certain number of clocks. Following the reset state would be the instruction fetching and decoding states which will enabletheappropriatesignalsforreadinginstructiondatafromtheROM the decoding the part of the instruction. The decoding state will also select the next state depending on the instruction, every instruction has its own state .Based on the instruction ,the control unit select the appropriatestate. After all operationfor given instruction finished, the last state return to fetch state which will allow us to process the next instruction in the program. 2.2 DATAPATH UNIT The datapath consist of subunits that are performing all ofarithmeticandlogicoperations.Itconsistoftheunitsnecessary to perform all the operations on the data selected by the control unit. It consist of register file, ALU, memory interface and branching unit. A datapath is a hardware that performs data processing operations, the control lines coming from the control unit operate all the units in the datapath .The path starts from the register filethathastwooutputportswhichareconnectedto all other units, after that the processing is done by one of the other units thenfinallyreturnedback totheregisterfile inputport using the multiplexer. The signals used in the datapath are forwarded from the control unit to each subcomponents needed. 2.3 MEMORY UNIT The CPU has a built in ROM which enable us to program simple code and execute it. It is a basic 16*32 ROM and itis32bit aligned. The list of signals in the ROMare Address -address sent by the control unity. Data_out - data that is contained the given address. Read - signal to enable reading from the ROM. Ready - signal to indicate when the ROM is ready for reading. Clock -main clock signal.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3199 Reset - intial reset signal. 3. SYSTEM DESIGN The processor is based on the Harvard architecture that any instruction occupies separatedpositionsofprogrammemoryand data memory(6)(7). Thus obtaining greater speed and a minor program length, also, the access time to the instructions canbe superposed with one of the data, obtaining a greater speed in each operation(8). The processor includes a RISCinstructionset and uses a Single Instruction – Single Data (SISD) execution order. Figure 2. System Design 4. STAGES OF OPERATION The overall diagram of the processor architecture s shown in figure3. Asseenfromthe diagram,thearchitecture(3) consistsof a five stage of operations. i. Instruction Fetch ii. Instruction Decode iii. Execute iv. Memory v. Write Back Figure 3. Data Flow Diagram 4.1 INSTRUCTION FETCH In this fetch cycle, the instructions are stored in the instruction memory, that instruction is to be fetched from the instruction memory. IR <= MEM[pc] NPC <= pc+4
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3200 This stage consists of three units.Program Counter, Instruction Memory and Branch Decide Unit. Figure 4. Block Diagram of Fetch Unit 4.2 INSTRUCTION DECODE In this decode stage, instructiondecodeintooperandcodes,operandaddressinformation,control andthedestination operand signal. This stage consists of four units Control Unit, Register Foley-Register and Sign Extend Unit. Figure 5. Block Diagram Of Decode Unit 4.2.1 Control Unit: The control unit generates(4) all the control signals needed to control the coordination among the entire component of the processor. The input to this unit is the 6-bit opcode field of the instruction word. This unitgeneratessignalsthatcontrol all the read and write operations of the Register File, Y-Register, and the Data Memory. It is also responsible for generating signals that decide when to use the multiplier and when to use the ALU, and it also generates appropriatebranchflagsthatareused by the Branch Decide unit. In addition, this unit provides clock gating signals for the ALU Control and the Branch Adder module.
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3201 Figure 6. Block Diagram of Control Unit 4.3 EXECUTE In this execution stage(5), the data from decode stage is tobeallowedfordata processing operations.This stageconsistsoffour modules: Branch Adder, Multiplier, Arithmetic Logic Unit and ALU Control Unit. Figure 7. Block Diagram Of Execute Unit 5. Instruction Set Architecture: There are three basic types of instructions supported by this processor. Register Type, Branch Type and Immediate Type. The specification for each type of instructions is given below. TABLE 1. Instruction Formats The setting of control lines that are determined by opcode for three instruction formats
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3202 6. Simulation Results Fetch Output FetchBranch output
  • 7. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3203 CONTROL UNIT OUTPUT INTEGRATION OUTPUT:
  • 8. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3204 7. CONCLUSION: The design of 32-bit RISC processor has beenpresented..Herewehaveused nearlytwentyinstructions.Inthatwe have arithmetic operations, logical operations, shift operations and load & store operations. Inour project, weimplementonly 8-bit Wallace tree multiplier and got output successfully. In future, it will enhance into 32-bit. By using MODELSIM 6.3f, the simulation results have been taken for all individual units successfully Most of the goals were achieved and simulationshows that the processor is working perfectly, but the Spartan 2E FPGA was not sufficient for implementing the whole design into a real hardware, since the total available logic gate in Spartan 3 Logic Gate, which was not3. REFERENCES [1] W. Stallings, “organization and architecture of computer,” 7ªEditión, Pearson, 2006. [2] M. Mano, “Architecture of computers,” 3ª Editión, Pearson, 1994. [3] A.K.Ray, “Advanced Microprocessor And Peripherals”, 2nd Edition, Tata McGraw- Hill,2008 [4] D.V.Hall,“Microprocessor And Interfacing”, 2nd Edition, Tata McGraw-Hill,2006 [5] D. Mandalidis, P. Kenterlis, J. Ellinas, “A computer architecture educational system based on a 32-bit RISC processor,” International Review on computers and Software, pp. 114-119, 2008. [6] Tocci, Widmer, Moss, “Sistemas Digitales, Principios y aplicaciones,” 10ª Editión, Pearson, 2007. Antonio H. Zavala, Jorge Avante R.,”RISC- Based Architecture for computer Hardware Introduction”. [7] R. Uma, “Design and Performance Analysis of 8 – bit RISC Processorusing XilinxTool”, International Journal ofEngineering Research and Applications, Volume 2, Issue 2, March – April 2012, pp. 053 – 058, ISSN: 2248 – 9622. [8] N. M. Dyamannavra, N. G. kurahattib,A. Christinaa ,”Design and Implementation of Field Programmable Gate Array Based Baseband Processor for Passive Radio Frequency Identification Tag”, IJE TRANSACTIONS A:BasicsVol.30,No.1,(January 2017) 127-133.