Шукаєте відповіді та рішення тестів для Sala común de la asignatura Tecnología de Computadores. Plan 2023 (2024-25, Grado en Ing del Software, Informática, de Computadores y Doble Grado Matemáticas + Informática, Todos los grupos)? Перегляньте нашу велику колекцію перевірених відповідей для Sala común de la asignatura Tecnología de Computadores. Plan 2023 (2024-25, Grado en Ing del Software, Informática, de Computadores y Doble Grado Matemáticas + Informática, Todos los grupos) в informatica.cv.uma.es.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Given an ISA with 4 instructions of 16 bits:
Instruction LW: LW rt, desp.(rs)
Code: 010s ssss tttt tddd
(s -> rs, t -> rt, d -> desp.)
Instruction SW: SW rt, desp.(rs)
Code: 001s ssss tttt tddd
(s -> rs, t -> rt, d -> desp.)
Instruction ADDI: ADDI rt, cons
Codificación: 011t tttt cccc cccc
(s -> rs, t -> rt, c -> cons)
Instruction J: J dir
Code: 101d dddd dddd dddd
(d -> dir)
Provide the code of the following instruction:
ADDI r3, 11
Give the hexadecimal (4 digit) representation with capital letters: h
Consider an instruction which copies the content of operand 2 (OP2) into operand 1 (OP1):
MV OP1, OP2
with binary code:
OpCode (MV)
|
OP1
|
OP2
| |||||||||||||
15
|
14
|
13
|
12
|
11
|
10
|
9
|
8
|
7
|
6
|
5
|
4
|
3
|
2
|
1
|
0
|
0
|
1
|
0
|
1
|
0
|
1
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
1
|
0
|
0
|
Consider the following addressing modes for operand 2 (OP2) :
The memory and register file content is given in the tables:
Memory
|
Register file
| |||
memory position |
Content
|
|
Register
|
Content
|
0
|
9
|
R0
|
19
| |
1
|
5
|
R1
|
-1
| |
2
|
13
|
R2
|
1
| |
3
|
4
|
R3
|
2
| |
4
|
5
|
R4
|
1
| |
5
|
10
|
R5
|
16
| |
6
|
14
|
R6
|
16
| |
7
|
5
|
R7
|
16
| |
...
|
...
|
...
|
...
|
give the values that are loaded into operand 1 (read from operand 2) according to the following addressing modes for operand 2:
Addressing mode of OP2
|
Value to give to OP1 (from OP2)
|
Immediate
| |
Direct to Register
| |
Direct to Memory
|
|
Indirect Register Memory
|
|
Indirect Memory Memory
| |
Relative to register R1
|
For the general purpose machine studied in session 3, write a code that given 2 numbers A and B that iteratively enter in gate IN computes for the gate OUT the expression.
Don't bother about the control signals, just write each instruction, e.g. mem[4]<-- IN, mem[5]<--R0, OUT<--R0+3
Cycle
|
Operation
|
Comment
|
clk1
| ||
clk2
| ||
clk3
| ||
etc
|
Write operation and comment like in the team exercise in the textbox down here
Given the instruction format design of team PEBKAC ERROR in session 4 of the classes. Give a hexadecimal code of the instruction LOAD R5, 100
Given an instruction format with two types of instructions:
|
|
|
|
Type1: |
Opc (3 bits)
|
Operand1 (5 bits)
Register direct
|
Operand2 (10 bits)
Direct to memory
|
|
|
|
|
Type2: |
Opc (3 bits)
|
Operand1 (10 bits) Relative
|
Operand2 (5 bits)
Register direct
|
Register
|
Offset
|
Give the number of memory positions that can be addressed direct to memory.
Given an instruction format with two types of instructions:
|
|
|
|
Type1: |
Opc (3 bits)
|
Operand1 (4 bits)
Register direct
|
Operand2 (10 bits)
Direct to memory
|
|
|
|
|
Type2: |
Opc (3 bits)
|
Operand1 (10 bits) Relative
|
Operand2 (4 bits)
Register direct
|
Register
|
Offset
|
Give the maximum number of registers the format can handle.
Given the following processor specification
Give some answers on the instruction format. Give the number of bits
for the OPCODE field
Code for this format the instruction: ldr r14, [r0, #28]
where
The field order in the format is: opcode, operand1, operand2 (register), operand2 (offset).
Let the opcode of ldr consist of all bits on 0.
opcode | operand1 | Operand2(register) | Operando2(offset) |
b | b | b | b |
Given the following 16 bits instrucion format with two types.
|
|
|
| |||||||||||||
|
Opc (3 bits)
|
Operand1 (4 bits)
Register direct
|
Operand2 (9 bits)
Direct to memory
| |||||||||||||
Type1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
Opc (3 bits)
|
Operand1 (9 bits) Relative
|
Operand2 (4 bits)
Register direct
| |||||||||||||
Register
|
Offset
| |||||||||||||||
Type2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The memory is addressed on word level, where each word has 16 bits . Give (in number of bytes) the size of the memory that can be addressed by direct addressing mode to memory. The answer should be a decimal number (e.g. 254)
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!