Professional Documents
Culture Documents
RISCMCU2
RISCMCU2
1.OVERVIEW
2.WORK DONE
4.FUTURE SCOPE
5.REFERENCES
1.OVERVIEW
a)DATAPATH
1.Instruction Register
2.General Purpose Register File
3.Arithmetic and Logic Unit
4.Data Ram
6.Portb
7.Portc
8.Portd
b)CONTROLLING
1.Control Unit
2. Databuses :
a)For taking output from the units
b)For giving inputs to the units
2.2 HARDWARE IMPLEMENTATION
DATAPATH DESIGN
4.Data Ram
It gets address from one of the GPRs and reads or write to a paricular
GPR.It is a 128*8 RAM.
5.Portb,Portc,Portd
All the ports have 8 pins with each pin programmable.
CONTROL UNIT DESIGN
1. Control Unit
There are two databuses taken into the design .One on which
outputs from all the units are going and the other from which inputs are
going to particular units.The two buses are linked through some control
logic.
INSTRUCTION INPUT CONTROL
(1a) (1c) LOGIC
(11)
(2a) (10)
INSTRUCTION GPR FILE
REGISTER
(7) (8) PORT
(4a) B
D
D
A
A
T
T
A
A
(2b) B
B
ALU U
U
S
(9) S PORT
I
CONTRO (6) O N
C
U
L T
UNIT
PORT
D
CONTROL SIGNALS
(4b) DATA RAM
(3)
(5)
BLOCK DIAGRAM OF 8 – BIT RISC MICROCONTROLLER
Description of connections:
(1a) Instruction Input (16 bit wide) is coming into the INSTRUCTION
REGISTER(IR).IR latches the next instruction only if it is a single cycle
instruction else it holds the previous instruction.
Instruction register decodes this address and points to that particular register.
(4a)Data from dataram to one of the GPRs .Here GPR address is decoded
into GPRFile unit itself
(5)Red line indicates that data output from units is going onto the databusout
(6)Blue line indicates that input to the units is coming from this databusin.
(7 & 8)Contents of registers (pointed by IR) are coming into ALU for some
operation.
(9)Flags output from ALU goes into the status register to get status of the
result.
1.Program Counter
Program counter can be added into the design if there is ROM into the
design so that program counter will hold address of next instruction to be
fetched or address where the control has to jump (in case of a call or
interrupt)
2.ROM
ROM can be added to the design by reserving some particular pins for
external connection of the ROM
3.Timer
Timer can be connected to the design which will also act as an interrupt by
generating timer interrupt request.
4.External Interrupt
External Interrupt shares pin 7 of the port so can be added in the design.