contributed by < handsomehsia
>
Step 1 - Take number of rows to be printed, n.
Step 2 - Make an iteration for n times
Step 3 - Print " " (space) for in decreasing order from 1 to n-1
Step 4 - Print "* " (start, space) in increasing order
Step 5 - Return
info | |
---|---|
cycles | 1812 |
retired | 1186 |
CPI | 1.53 |
IPC | 0.65 |
Pipeline has 5 stages, IF, ID, EX, MEM and WB. We use pipeline to improve the efficiency of program.
add x18 x0 x0
funtion for exampleIF (Instruction Fetch)
beq
, jal
, j
etc.-ex. pc send pc addr to instruction memory and fetch the instruction addr out 0x00000933
ID (Instruction Decode)
EX (Execution)
MEM (Mem structure)
MemRead
and MemWrite
which can distinguish between write and read operation.WB (Write Back)
MemtoReg
which decide whether write data back to the register file.