• 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/14

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;

14 Cards in this Set

  • Front
  • Back
What is the significance of a Mux circuit?

A Mux circuit accepts two inputs and based on the third control input it will determine whether the output is the first input or the second input. Acts as a conditional statement.
What are the components for a Mux circuit?

2 inputs, 1 control input, and one output.


1 note gate, two AND gates, and 1 or gate.

what is the significance of a 4to1 Mux circuit?
Accepts 4 inputs and outputs 1 input based on the control input of 2 bits. Acts as a conditional statement for 4 variables;
what is the significance of a fulladder?

a fulladder will accept 2 inputs and a cinput and the output will be all of these inputs added together; z = a + b + cin.


How do you multiply in MIPS?

ex mult $t1, $t2 #$t1 * $t2


mflo $t1 #move from low (regular multiplication)


mfhi $t2

When using div in mips, what does the mflo and mfhi store in MIPS?

mflo stores the whole number division, while mfhi stores the remainder.

If you wanted to get the negation of 0x400 (1024), how would you do it through MIPS?

nor $t1, $0, 0x400

How would you create a 32 bit mask with a hole in the 10th bit with MIPS.

nor $t1, $0, 0x400


----OR-----


addi $t1, $0, 0xffff


addi $t2, $0, 0xfbff


sll $t1, $t1, 16


or $t1, $t1, $t2


------OR-------


...





How would you create a program in MIPS that will flip the 10th bit of any number.

xori, $t0, 0x400


0 xor 0 turns to 0, while 0 xor 1 turns to 1


1 xor 1 turns to 0,


so xor is good to flip the 10th bit

FILL THE BLANK




Regardless of how many programs are loaded into SPIM (MIPS simulator), only one of them has a ______ label.

main

MIPS: How many bytes or bits are in a .word and .half directive.

4 bytes in the .word and 2 bytes in .half

MIPS: a registers and v registers are usually used what for?

a registers are usually used for receiving parameters, while v registers are used to return data.

If you are going to use a jal(Jump and Link) instruction in MIPS what must you add to the code to prevent an infinite loop?

You must save the previous $ra (return address) in a $sp (stack pointer). So when the program is going to jump to the return address it will jump to the correct one.

what is a non-leaf method?

a method that invokes itself