Professional Documents
Culture Documents
TCSS 372A: Computer Architecture
TCSS 372A: Computer Architecture
TCSS 372A: Computer Architecture
Computer Architecture
Getting Started
Get acquainted (take pictures)
Review Web Page (http://faculty.washington.edu/lcrum)
Review Syllabus and Textbook
Purpose, scope, and expectations of the course
Expectations & strategy for doing well
Discuss Homework Format
Combinational
Logic
Storage
State Machine
Program counter
Instruction Register
Program Status Register (Program Status Word)
PSR[15] Privilege Bit (Supervisor or User State)
PSR[10:8] Priority Bits
PSR[2:0] Condition codes - N, Z, P
Register File:
R7
R6
R5
R4
R3
R2
R1
R0
LC-3 Instructions:
Traps:
1)
Execute
2)
3)
4)
[PC] is stored in R7
5)
6)
7)
x0200
Op Sys
x3000
run-time
stack
Run-time stack
Vectors
instructions
global data
Device Registers
R6
R5
PC
R4
R5
Local Variables
Frame Ptr
Interrupts:
1)
Programmer Action:
2)
4)
5)
The Processor Loads the PC from the Interrupt vector (vectors in 0100:01FF)
6)
7)
The stored user PSR (POP into PSR), PC (POP into PC), (R6)SSP.saved, (USP.savedR6), and the next
instruction fetched
2 BIT Decoder
2-to-1 MUX
MUX Circuit
Case: S=0
MUX Symbol
4-to-1 MUX
Symbol
Logic
TCSS372A - HW1
Memory Map & Activation Records: Show the memory map
during execution of the following program at point 1 , and the
stack at points 1 through point 7.
int main ()
{
int a = 23;
int b = 14;
...
b = Watt(a);
b = Volta(a,b);
...
...
return w;
/* point 1 */
/* point 5 */
/* point 7 */
/* point 2 */
/* point 4 */