logo

Crowdly

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)? Перегляньте нашу велику колекцію перевірених відповідей для 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 a number represented in two's complement: 110001. Give the represented decimal (integer) number.

Переглянути це питання
Given decimal number 16.433. Represent it as fixed point SM with in total 9 bits; 1 bit sign + 5 bits integer part + 3 bits fractional part. The representation should not be bigger in absolute value than the decimal number.

Example 5.0 is represented as 0 00101 000
Переглянути це питання

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) :

  • Immediate (unsigned decimal in binary)
  • Direct to register
  • Direct to memory
  • Indirect register-memory
  • Indirect memory-memory
  • Relative to register R1

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

Error converting from MathML to accessible text..

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

  • Can handle up to 128 instuctions
  • Number of general registers: 16
  • Number of memory positions: 64

Give some answers on the instruction format. Give the number of bits

  • for the OPCODE field

  • for a field containing the direct address of a register
  • for a field containing the direct address of a memory position
  • for a field that indirectly addresses via a register
  • required in total for relative addressing with an explicit register base and an offset represented in 2C with range [-32,31]

Code for this format the instruction:  ldr r14, [r0, #28]

where

  • the first operand (r14) has direct register addressing
  • the second operand ([r0, #28]) has relative addressing with explicit register base

The field order in the format is: opcode, operand1, operand2 (register), operand2 (offset).

Let the opcode of ldr consist of all bits on 0.

  • Give the binary code to the instruction

opcode

operand1

 Operand2(register)

Operando2(offset)

b

b

b b

 

  • Code the instruction in hexadecimal using Capital letters and 6 digits h

 
Переглянути це питання

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)

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на informatica.cv.uma.es?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!