• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back

Name 2 Factors of CPU Performance.

1) Instruction Count


2) CPI and Cycle Time

Name 2 simple memory reference MIPS codes.

lw, sw

Name 2 MIPS codes for control transfer

beq, jump

A low-voltage and high voltage corresponds to what?

A 0 and a 1 in binary.

How many bits per wire?

ONE!!!!!!!!!!!!!!!!!

State a logic equation for the and, or, mux, and ALU gates and units. Let Y be the output and A and B be inputs.

And: Y = A & B




Or: Y = A | B




Mux: Y = S ? A : B




ALU: Y = F (A, B)

How does a Mux perform 32-bit operations?

It's arrayed 32 times with a mux for each bit in the word.

Name the sequential elements of a CPU that only updates on a clock edge and when the control is set to 1.

- Register


- Memory






















- Porn

How do you calculate the target address of a branch instruction?

sign-extend the first 16 bits


shift the word 4 bits to the left


or multiply by 4



An R-Type instruction reserves how many bits for it's op and funct, rs, rt, rd, and shamt?

6 + 6 + 5 + 5 + 5 + 5 = 32


op + funct + rs + rt + rd + shamt


according to math?

A Branch instruction reserves how many bits for its op, rs, rt, and address?

6 + 5 + 5 + 16 = 32




op + rs + rt + address


A branch instruction is what type of instruction?

I-Type

RegDst does what when Deasserted?


When Asserted?

RegDst


0 - The register destination for RegWrite comes from the rt field. bits 20:16.


1 - register destination for RegWrite comes from bits 15: 11 the rd field.

RegWrite does what when Deasserted?


When Asserted?

RegWrite


0 - Nothing is done.


1 - The register from the RegDst is written with the value on the WriteData input.

ALUsrcs does what when Deassrted?


When asserted?

ALUsrc


0 - The Second ALU operand comes from the second register file output.


1- The second ALU operand is the sign extended lower 16 bits of the instruction.

PCsrc?

PCsrc


0 - PC is replaced by PC + 4 calculated from an Adder.


1 - PC is replaced by the branch target calculated by an adder.

MemRead?

MemRead


0 - nothing


1 - Data memory contents designated by the address input are put on the read data output.

MemWrite?

MemWrite


0 - nothing


1 - Data memory contents designated by the address input are replaced by the data on the Write Data input.

MemtoReg?

MemtoReg


0 - Value fed to register write data input comes from ALU.


1 - Value fed to register write data input comes from Memory.

What is pipelining?

A form of computer organization in which successive steps of an instruction sequence are executed in turn by a sequence of modules able to operate concurrently, so that another instruction can be begun before the previous one is finished.




ex. 3 People doing laundry


Non-Pipelined


Washer --> Dryer --> Fold --> Next Person




Pipelined


Washer --> Dryer --> Fold


Washer --> Dryer --> Fold


Washer --> etc.....

What are some thing's that might delay pipelining?

Structure Hazard - A Required Resource is too busy


Data Hazard - A previous instruction needs to complete it's data read and write.


Control Hazard - Deciding on control actions depends on previous instruction.

How might you prevent a Data Hazard?

Forwarding the data to the next instruction rather than waiting for the previous instruction to complete. This requires extra connections.




This does not always work, for example. If the data you want to forward has not been computed.




Code Scheduling or re-ordering the code so that Data Hazard does not occur is also a way to prevent Data Hazard.

How does Pipelining improve performance?

By increasing instruction throughput.


Executing instructions in parallel.


Each instruction will have the same latency.



What is bad about pipelining?

It's subject to hazards.


Instruction set design affects the complexity of pipelining implementation.

Who is the B.O.S.S?

vvvvvvvvvvvvvvvvvvvv


--->Julius Gregorio Martin<------


^^^^^^^^^^^^^^^^^^^