Professional Documents
Culture Documents
CO Assignment-1: ISA With Reference To MIPS
CO Assignment-1: ISA With Reference To MIPS
Characteristics:
● It is a load-store architecture that uses general-purpose registers.
● It has only two addressing modes, displacement and immediate, but can synthesize
other important modes from them.
● It supports 8-, 16-, 32-, and 64-bit integers, and 32- and 64- bit IEEE 754 floating-point
numbers.
● It has an orthogonal set of instructions to manipulate these data types.
● It has separate comparison and branching instructions. (This is an example of making
the common case fast.)
MIPS has thirty-two 64-bit general-purpose registers, named R0, R1, … , R31. R0 always
contains 0 (loading it with another value has no effect). It has 32 floating-point registers, which
can hold either single precision (32-bit) or double-precision (64-bit) values.
Combinational:
1. Multiplexer:A multiplexer is a logic component with multiple data inputs (X and Y), a
single control input (Sel), and a single output (Out). At any time its output is the same as
one of its inputs. Which one is determined by the control input.
2. Sign Ext:The Sign Ext component performs sign extension, converting a 16-bit 2's
complement number to a 32-bit 2's complement number. The low-order 16 bits of the
output are the same as the input. The high-order 16 bits of the output are all copies of
the sign (high-order) bit of the input.
3. Adder:An adder just performs binary addition of its two inputs to produce a sum output.
5. Control:The (main) control component uses the opcode field of the instruction to
generate most of the control signals.
6. ALU control:All op bits for an R-type instruction are 0. The operation is encoded into the
fn bits. For R-type instructions, the main Control component delegates the determination
of the ALU operation to the ALU Control.
3. Data memory:The Data Memory component is actually just an interface to the bus that
interconnects the processor, main memory, and I/O devices. Since other devices use this
bus, an enable signal is required for both memory reads and memory writes.Note that
the Address input is shared by both the read port and the write port.