Design and Application of RISC Processor
Design and Application of RISC Processor
Abstract— This paper presents the design of multi-cycle 32-bit times and the length of the instruction vary widely. The
Reduced Instruction Set Computer (RISC) processor for better approach of CISC is quite complex and therefore it is being
performance and higher speed of operation. The processor is replaced by the Reduced Instruction Set Computer (RISC).
capable of executing more number of instructions with simple [4]
design and less critical path delay. The designed processor was
simulated and synthesized using Xilinx 14.7 ISE design suite.
RISC doesn’t mean that the number of instructions are
The processor executes each and every instruction in more less it only implies that all the instructions have the same
than one cycle that’s why the term multi-cycle. Each instruction simple and fixed instruction format. Variations in instruction
is divided into three main states namely the Fetch state, the length is the main factor behind inefficient processors. Along
Decode state and the Execution state. The first two sates remain with fixed-length instruction size, RISC designs also use a
the same for all the instruction the last state, however depends simple instruction format. The boundaries of various fields in
on the type of operation performed in that instruction an instruction such as opcode and source operands are fixed.
This allows for efficient decoding and scheduling of
Index Terms— Reduced Instruction Set Computer (RISC), instructions[3].
Microprocessor without Interlocked Pipeline Stages (MIPS),
Apart from this the RISC has other added advantages like
Complex Instruction Set Computer (CISC), Hardware
description languages (HDL), Verilog. simple addressing modes, register-to-register operations
(except for load and store instructions), fixed length of
registers, simple operations and a large register set.
I. INTRODUCTION The MIPS is a RISC based microprocessor architecture
that was developed by MIPS Computer Systems Inc.
There are different view points from which one can view
Architecture of MIPS RISC microprocessor includes, fixed-
a computer system depending on how they interact with the
computer system. The concept of abstraction is important to length instructions, simple decoded instruction format,
explore the details that are necessary from a particular memory accesses limited to load and store instructions,
viewpoint. Computer systems can be viewed from different hardwired control unit, a large general purpose register file,
perspective depending on the user. and operations executing within the registers of the
Programmers uses the instruction set architecture (ISA) is microprocessor[1].
as a useful abstraction to understand the processor’s internal From the literature available on the RISC based
details. ISA defines the processor at a logic level, it defines processors, the problem was to make a processor capable of
the personality of a processor. ISA includes the type of performing fast and executing even more number of
instructions and the meaning of those instructions. If the instructions with the simplest of architectures and the
meaning conveyed to those instructions are correct then it simplest of instruction sets. The RISC topology that would
becomes easy for the chip manufacturer to complete the solve this problem was a special type of RISC architecture
physical design implementation of the processor. There are i.e. the MIPS architecture. So, in this paper single-cycle
two categories of processors defined at the ISA level: RISC MIPS architecture was chosen and the design was modified
and CISC[3]. to provide better performance without compromising the
The approach of CISC machines is to do more with each number of instructions[11].
and every instruction which leads to its complexity. As a The performance of any processor depends on the time it
result, there are a large number of addressing modes takes to execute an instruction (here execution means from
associated with CISC machines. As a result the execution fetching the opcode, then decoding of the opcode, then
,(((
Authorized licensed use limited to: Bahauddin Zakariya University. Downloaded on October 24,2024 at 04:18:12 UTC from IEEE Xplore. Restrictions apply.
,03$&7
IMPACT-2017
fetching the data, then performing the necessary operation store instructions then read or write data from another part of
and finally storing the result in the registers). Now, the memory. Thus, the overall memory is partitioned into two
execution time of a processor is given by the following smaller memories, one containing instructions and the other
expression: containing data. Figure 1 shows a block diagram with the four
state elements: the program counter, register file, and
Execution time = (# instructions) (Cycles per instruction and data memories.[2]
Authorized licensed use limited to: Bahauddin Zakariya University. Downloaded on October 24,2024 at 04:18:12 UTC from IEEE Xplore. Restrictions apply.
,03$&7
IMPACT-2017
Authorized licensed use limited to: Bahauddin Zakariya University. Downloaded on October 24,2024 at 04:18:12 UTC from IEEE Xplore. Restrictions apply.
,03$&7
IMPACT-2017
Tcritical = Tpc + Tmux + max (Tmux+Talu,Tmem)+Tmux. Figure 6 shows the RTL schematic of the multi-cycle
MIPS.As can be seen from the figure 5 that the processor is
Tcritical = Tpc + 2Tmux + max (Tmux+Talu,Tmem).
divided into two parts the datapath and the controller.
Critical path delay reduced by Tmux+Tmem
Where,
Tpc = time for pc to load address
Tmux = delay of the multiplexer
Tmem = time to access memory
Talu = time taken for an ALU operation
This is a theoretical calculation of the critical path delay
of the multi-cycle MIPS which is reduced by (Tmux+Tmem)
compared to the single-cycle MIPS. Now, this is a
considerable amount looking into the fact that these delay Figure 8. FSM of multi-cycle MIPS controller
values are generally given in units of nanoseconds. So, for
Table 1 shows the states, which are a part of the FSM of
almost the same topology we have reduced the critical path the controller which is shown in figure 8. The most important
delay[2]. part is the controller or the control unit. The FSM controller
discussed in the previous section tells us about the working of
VI. RESULTS the various MIPS operations along with the changes in the
The RTL schematic or the register transfer schematic is control signals at every state. The definition of the control
generated post HDL synthesis phase of the synthesis process. signals ate every state ensures the correct flow of data in the
It represents the pre-optimized design in terms of generic data path.
symbols, such as multipliers, adders, counters, AND gates
etc, that are independent of the targeted Xilinx device. TABLE 1. STATE TABLE FOR FIGURE 7.
Authorized licensed use limited to: Bahauddin Zakariya University. Downloaded on October 24,2024 at 04:18:12 UTC from IEEE Xplore. Restrictions apply.
,03$&7
IMPACT-2017
VII. CONCLUSION
Figure 9. Simulation of controller for add instruction In the paper we have been able to design and simulate a
32-bit RISC processor for a particular instruction set by
The next simulation result is the control path for the load
modifying the datapath of the single-cycle MIPS by using
word instruction of the multi-cycle MIPS. Figure 10 shows
Xilinx 14.7 ISE design suite. . The processor executes more
the control signals and all the state as mentioned table 1 and
number of instructions with less critical path delay. The
figure 8 and the control path is according to the FSM
developed in figure 8. reduction in critical path delay also led to the reduction in the
execution time thus leading to a better processor.
REFERENCES
Authorized licensed use limited to: Bahauddin Zakariya University. Downloaded on October 24,2024 at 04:18:12 UTC from IEEE Xplore. Restrictions apply.