larc in logisim Flashcards

1
Q

how can complicated logic gates store & execute computer programs

A

computers can chain logic gates together by connecting the output of one into the input of another. this allows for more complex operations than a single gate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

(overall structure) how many general-purpose registers?

A

16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

(overall structure) each register holds?

A

16-bit binary number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

(overall structure) general-purpose registers are numbers

A

0-15 or 0b0000 to 0b1111 in binary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

(overall structure) register 0 is always

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

(overall structure) fetch-and-execute cycle

A

16-bit number in PC gives address of memory location that contains next ML instruction –> computer fetches instruction from address –> adds one to PC for next instruction –> executes instruction –> repeats until halted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(overall structure) what goes inside larc computer

A
  • PC
  • ROM
  • Register file
  • ALU
  • RAM
  • Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

role of the clock

A

signal that keeps control unit moving

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

at each clock ‘tick’

A

control unit moves to next machine cycle (next instruction / next phase of current instruction)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

clock generator cycle

A

based on crystal oscillator, generates regular sequence of 0 & 1 logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

one clock cycle

A

tick –> rising edge –> tock –>falling edge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

program counter (PC)

A

register that holds counter / current # of steps of program; when program is executed, +1 is added, proceeds to next instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

(structure of register file) registers are memory used to

A

accept, store, & transfer data/instructions being used immediately by CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

(structure of register file) important functions of registers

A

fetching, decoding, & execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(structure of register file) data register do what?

A

hold numbers, characters, & arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

(structure of register file) address registers do what?

A

save addresses & access primary memory of system

17
Q

(structure of register file) general purpose registers do what?

A

act as both data & address registers; sometimes store floating numbers

18
Q

where can next value for PC come from?

A
  • PC + 1
  • register whose number is rb (jalr instruction)
  • PC + 1 + sign-extended LIMM (for inez, beqz)
19
Q

how is opcode used to control computation

A

each operation has own opcode; computer recognized which operation and accordingly manipulates values to get desired outcome

20
Q

opcodes numbered 0b0000 to 0b1111

A

begins with arithmetic –> through intermediate –> memory & jump –> ends with syscall

21
Q

build logic circuit to test opcode

A

convert “right pathways”/”correct op-codes” into boolean using n0, n1, n2, n3 as 4 op-code digits & wires that will go thru circuit
–> write correct wires & connect with AND gate , then connect all correct inputs with OR gate