Microprocessor and Architecture Solution PDF
Microprocessor and Architecture Solution PDF
1. The microprocessor places a 16 bit address on the address bus which selects
only register. The lower order is seen on AD 0 - AD7. The higher order is
seen on A 15 - A9
2. Attempt any three of the following: 15
a. Explain the working of the OUT instruction in 8085 microprocessor.
b. Explain the memory mapped I/O with STA 8000H stored at memory address
2050H.
The device selection has the following steps :-
c. List and explain the various data transfer instruction.
d. What is a instruction , instruction word size and their types based on size ?
e. Explain the following instruction
I)ADI : Add Immediate Data to Accumulator \
f. Write an assembly program for 8085 microprocessor to add the content of C030H
and C031H . Store the sum in C040H and carry at C041H.
MVI A,00H
MVI B,00H
MVI C,00H
LDA C030H
MOV B,A
LDA C031
ADD B
JNC HERE
INR C
HERE: STA C040
MOV A,C
STA C041
HLT
c. Calculate the time delay for the 8085-based Microcomputer with 2 MHz clock
frequency.
Label Mnemonics Operand T cycle
MVI C,FFH 7
LOOP: DCR C 4
JNZ LOOP 10/7
d. Draw and explain a flowchart for a zero to nine counter.
iii) SBB
c Explain the following :-
i) Cross Assembler 03
02
The Pentium Pro is structured differently than earlier microprocessors. Early microprocessors
contained an execution unit and a bus interface unit with a small cache buffering the execution
unit for the bus interface unit. This structure was modified in later microprocessors, but the
modifications were just additional stages within the microprocessors. The Pentium architecture is
also a modification, but more significant than earlier microprocessors. Figure shows a
block diagram of the internal structure of the Pentium Pro microprocessor.
The system buses, which communicate to the memory and I/O, connect to an internal level
2 cache that is often on the main board in most other microprocessor systems. The level 2 cache
in the Pentium Pro is either 256K bytes or 512K bytes. The integration of the level 2 cache
speeds processing and reduces the number of components in a system.
The bus interface unit (BIU) controls the access to the system buses through the level 2
cache, as it does in most other microprocessors. Again, the difference is that the level 2 cache is
integrated. The BIU generates the memory address and control signals, and passes and fetches
data or instructions to either a level 1 data cache or a level 1 instruction cache. Each cache is 8K
bytes in size at present and may be made larger in future versions of the microprocessor. Earlier
versions of the Intel microprocessor contained a unified cache that held both instructions and
data. The implementation of separate caches improves performance because data-intensive
programs
no longer fill the cache with data.
b. List any five Pentium instructions and explain the function of any two.
Instruction Function
CMPXCHG8B Compare and exchange eight bytes
CPUID Return CPU identification code
RDTSC Read time-stamp counter
RDMSR Read model-specific register
WRMSR Write model-specific register
RSM Return from system management interrupt
The CPUID instruction reads the CPU identification code and other information from
the Pentium. To use the CPUID instruction, first load EAX with the input value
and then execute CPUID. If a 0 is placed in EAX before executing the CPUID instruction, the
microprocessor returns
the vendor identification in EBX, EDX, and EBX. For example, the Intel Pentium
returns“GenuineIntel” in ASCII code with the “Genu” in the EBX, “ineI’ in EDX, and “ntel” in
ECX. TheEDX register returns information if EAX is loaded with a 1 before executing the CPUID
instruction.
The RDTSC instruction reads the time-stamp counter into EDX:EAX. The time-stamp
counter counts CPU clocks from the time the microprocessor is reset, where the time-stamp counter
is initialized to an unknown count. Because this is a 64-bit count, a 1GHz microprocessor can
accumulate a count of over 580 years before the time-stamp counter rolls over. This instruction
functions only in real mode or privilege level 0 in protected mode.
The RDMSR and WRMSR instructions allow the model-specific registers to be read or
written. The model-specific registers are unique to the Pentium and are used to trace, check
performance, test, and check for machine errors. Both instructions use ECX to convey the register
number to the microprocessor and use EDX:EAX for the 64-bit-wide read or write. Note that the
register addresses are 0H–13H. See Table 18–5 for a list of the Pentium model-specific registers and
their contents. As with the RDTSC instruction, these model-specific registers operate in the
real or privilege level 0 of protected mode.
Extension found with the Pentium Pro and Pentium II microprocessors. The page size extension
allows memory above 4G through 64G to be addressed. Finally, bit 24 indicates whether the fast
floating-point save (FXSAVE) and restore (FXRSTOR) instructions are implemented.
d. Compare Core i3, i5 and i7 processors.
e. What are the features of the SPARC Architecture?
SPARC includes the following principal features:
.A linear, 32-bit address space.
. Few and simple instruction formats — All instructions are 32 bits wide, and
are aligned on 32-bit boundaries in memory. There are only three basic
instruction formats, and they feature uniform placement of opcode and register
address fields. Only load and store instructions access memory and I/O.
. Few addressing modes — A memory address is given by either “register +
register” or “register+immediate.”
. Triadic register addresses— Most instructions operate on two register
operands (or one register and a constant), and place the result in a third
register.
. A large “windowed” register file — At any one instant, a program sees 8
global integer registers plus a 24-register window into a larger register file.
The windowed registers can be described as a cache of procedure arguments,
local values, and return addresses.
. A separate floating-point register file — configurable by software into 32
single-precision (32-bit), 16 double-precision (64-bit), 8 quad-precision
registers (128-bit), or a mixture thereof.
. Delayed control transfer— The processor always fetches the next instruction
after a delayed control-transfer instruction. It either executes it or not,
depending on the control-transfer instruction’s “annul” bit.
. Fast trap handlers— Traps are vectored through a table, and cause allocation
of a fresh register window in the register file.
. Tagged instructions — The tagged add/subtract instructions assume that the
two least-significant bits of the operands are tag bits.
. Halfword— 16 bits
. Word/Singleword — 32 bits
. Doubleword— 64 bits