Documente Academic
Documente Profesional
Documente Cultură
Aleksandar Milenkovic
http://www.ece.uah.edu/~milenka http://www.ece.uah.edu/~milenka/cpe626-04F/ milenka@ece.uah.edu
Assistant Professor Electrical and Computer Engineering Dept. University of Alabama in Huntsville
LaCASA IP Library
But, the gap between available chip complexity and design productivity continues to increase
Use IP cores
A. Milenkovic 2
LaCASA IP Library
A. Milenkovic
LaCASA IP Library
A. Milenkovic
LaCASA IP Library
VHDL Model
MPLAB IDE
C Compiler
Verification
iHex2Rom
Synthesis& Implementation
A. Milenkovic 5
LaCASA IP Library
Put together knowledge in digital design, HDLs, computer architecture, programming languages State-of-the-art devices Work in teams
A. Milenkovic
LaCASA IP Library
PIC18 Greetings
http://www.ece.uah.edu/~milenka/pic18/pic.html
A. Milenkovic
Design, verify, implement, and prototype a rudimentary processor MU0 Modeling using VHDL Simulation using ModelSim Implement using Xilinx ISE and a SpartanII device
A. Milenkovic
4 bits opcode
12 bits S
A. Milenkovic
Follow the principle that the memory will be limiting factor in design: each instruction takes exactly the number of clock cycles defined by the number of memory accesses it must take.
PC
co ntro l
IR memo ry
AL U
ACC
da ta b us
A. Milenkovic 10
Initialization
Reset input to start executing instructions from a known address; here it is 000hex
provide zero at the ALU output and then load it into the PC register
11
A. Milenkovic
A. Milenkovic
12
Out p ut s Bs el PCc e ACCo e MEMrq Ex / f t As e l ACCc e IRc e ALUf s Rn W 0 0 1 1 1 0 =0 1 1 0 1 1 1 0 0 0 =B 1 1 1 0 0 0 1 1 0 B+1 1 1 0 1 x 0 0 0 1 x 1 0 1 0 0 0 1 1 0 B+1 1 1 0 1 1 1 0 0 0 A+B 1 1 1 0 0 0 1 1 0 B+1 1 1 0 1 1 1 0 0 0 A-B 1 1 1 0 0 0 1 1 0 B+1 1 1 0 1 0 0 1 1 0 B+1 1 1 0 1 0 0 1 1 0 B+1 1 1 0 0 0 0 1 1 0 B+1 1 1 0 1 0 0 1 1 0 B+1 1 1 0 0 0 0 1 1 0 B+1 1 1 0 1 x 0 0 0 0 x 0 1 0
A. Milenkovic
13
LDA S (0000)
Ex/ft = 1
Ex/ft = 0
B+1
A. Milenkovic
14
STO S (0001)
Ex/ft = 1 Ex/ft = 0
B+1
A. Milenkovic
15
ADD S (0010)
Ex/ft = 1 Ex/ft = 0
A+B
B+1
A. Milenkovic
16
SUB S (0011)
Ex/ft = 1 Ex/ft = 0
A-B
B+1
A. Milenkovic
17
JMP S (0100)
Ex/ft = 0
B+1
A. Milenkovic
18
JGE S (0101)
Ex/ft = 0, ACC15 = 0
Ex/ft = 0, ACC15 = 1
B+1
B+1
A. Milenkovic
19
JNE S (0110)
Ex/ft = 0, ACCz = 0
Ex/ft = 0, ACCz = 1
B+1
B+1
A. Milenkovic
20
STP (001)
Ex/ft = 0
A. Milenkovic
21
Reset
Ex/ft = 0
A. Milenkovic
22