Alternative Architectures (Chapter 9). CS147 section 03 Ke-Huan Chou. Topics. RISC machines CISC machines RISC vs. CISC Register Windows Sets. Some History About RISC. The earliest attempt to make a chip-based RISC CPU was by IBM in 1975: IBM 801
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Alternative Architectures(Chapter 9)
CS147 section 03
Program execution time is directly proportional to clock cycle time, number of cycles for each instruction, and the number of instructions in the program
5 X 10 = ?
mov ax, 0
mov bx, 10
mov cx, 5
Begin: add ax, bx
mov ax, 10
mov bx, 5
mul bx, ax
10+10+10+10+10 = 50
10 X 5 = 50
Total clock cycles = (3 mov X 1 clock cycle) + (5 add X 1 clock cycle) + (5 loop X 1 clock cycle) = 13 clock cycles
Total clock cycles = (2 mov X 1 clock cycle) + (1 mul X 30 clock cycle) = 32 clock cycles
Suppose we want to multiply 2 numbers that stored in the main memory:
2 : 4 and 4 : 3
(Row) : (Column)
The Instructions Might Look Like This:
LOAD A, 2:4LOAD B, 4:3PROD A, BSTORE 2:4, A
MUL 2:4, 4:3
First, Load the number stored in 2:4 put it in register A. Then load the number stored in 4:3 and put it in register B. Get the product of A and B. Store the result back to 2:4
That’s it. The instruction will load the two numbers in those two areas in main memory and put them in separate registers, and it will do multiplication of those two numbers and store the result in the register
- Global registers: common to all windows.
- Local registers: local to the current window
- Input registers: overlaps with the preceding window’s output registers
- Output registers: overlaps with the next window’s input registers.
- Current window pointer (CWP): points to the register window set to be used at any given time
Procedure One is calling Procedure Two
CWP = 8
CWP = 24