Coa Da1
Coa Da1
Digital Assignment - 1
Question 1.
a. Draw the clear Block Diagram of the Microprocessor / Micro
controller/ IP core selected.
b. Give the internal Diagram of each and every block.
Processor with Debug Block Diagram:
The main blocks of the processor with debug are:
1. Core
2. NVIC
3. Bus master
4. AHB-PPB
5. Debug.
Description:
Core
3-stage pipeline
multiply cycles:
o three cycles for normal multiplier
Thumb state
Handler and Thread modes
ISR entry and exit
o processor state saving and restoration, with no
instruction fetch overhead
o tightly-coupled interface to interrupt controller enabling
efficient processing of late-arriving interrupts.
LE and BE-8 data endianness support.
Registers
The processor contains:
NVIC
The NVIC is tightly coupled to the processor core. This facilitates low-
latency exception processing. The main features include:
Bus master
NVIC
the debug components when present.
Debug
Description:
Instruction sets:
o Thumb-1 (most), missing CBZ, CBNZ, IT.
BNE Loop
Data processing Instructions:
Consist of:
Processor Modes:
Question 3.
Explain Micro processing element (Microprocessor/
Microcontroller/ IP core) Architecture.
The Cortex-M1 processor implements a subset of the Thumb-2
(ARMv7) architecture called ARMv6-M. This includes all of the 16-bit
Thumb-2 instructions and some of the 32-bit instructions.
The ALU has two 32-bits inputs. The primary comes from the register
file, whereas the other comes from the shifter. Status registers flags
modified by the ALU outputs.
The V-bit output goes to the V flag as well as the Count goes to the C
flag. Whereas the foremost significant bit really represents the S
flag, the ALU output operation is done by NORed to get the Z flag.
The multiplier factor has 3 32-bit inputs and the inputs return from
the register file. The multiplier output is barely 32-Least Significant
Bits of the merchandise.
Booth Algorithm
Moreover, the runs of 0’s or 1’s within the multiplier factor are
skipped over without any addition or subtraction being performed,
thereby creating possible quicker multiplication. It’s clear that the
multiplication finishes only in16 clock cycle.
Barrel Shifter
The barrel shifter features a 32-bit input to be shifted. This input is
coming back from the register file or it might be immediate data. The
shifter has different control inputs coming back from the instruction
register.
The Shift field within the instruction controls the operation of the
barrel shifter. This field indicates the kind of shift to
be performed (logical left or right, arithmetic right or rotate right).
Control Unit
For any microprocessor, control unit is the heart of the whole process
and it is responsible for the system operation, so the control unit
design is the most important part within the whole design.
Signals from the control unit are connected to each component within
the processor to supervise its operation.
Question 4:
Correlate the Micro processing element
(Microprocessor/controller/IP core) architecture with architectures
discussed in Module 1.
8051 has limited stack space – limited to 128 bytes for the
8051. Writing a C compiler for these architectures must have
been challenging, and compiler choice is limited.
8051 has a bus width of 8 bit in size and ARM Cortex M1 has a
bus width of 32 bits.
Question 5:
Elaborate Register organisation of Micro processing element.
The R13, R14, and R15 registers have the following special functions:
• Stack pointer – Register R13 is used as the Stack Pointer (SP).
Because the SP ignores writes to bits [1:0], it is auto-aligned to a
word (four-byte) boundary. The stack pointer has banked aliases,
SP_process and SP_main, when the processor has been configured
with OS extensions present. When OS extensions are absent, only a
single stack pointer, SP_main, is present.
• Link register – Register R14 is the subroutine Link Register (LR). The
LR receives the return address from the Program Counter (PC) when
a Branch and Link (BL) instruction is executed. The LR is also used for
exception returns. At all other times, R14 can be treated as a
general-purpose register.
• Program counter – Register R15 is the Program Counter (PC). Bit [0]
is always 0, so instructions are always aligned to 16-bit halfword
(two-byte) boundaries.
Question 6:
Explain the type of algorithm used for signed/unsigned Calculation
(Addition, Multiplication etc.).
Question 7:
Find what type of control logic unit used and correlate its
performance with the type of control unit in Module 3 in COA
syllabus.
For any microprocessor, control unit is the heart of the whole process
and it is responsible for the system operation, so the control unit
design is the most important part within the whole design. The control
unit is sometimes a pure combinational circuit design. Here, the
control unit is implemented by easy state machine. The processor
timing is additionally included within the control unit. Signals from the
control unit are connected to each component within the processor
to supervise its operation.
Since internal data memory is used for CALL stack also and there is
only 256 bytes splited over few different memory areas fine utilizing
of this memory is crucial for fast and compact code. See types
efficiency also.
Memory block in the range of 20h to 2Fh is bit-addressable, which
means that each bit being there has its own address from 0 to 7Fh.
Since there are 16 such registers, this block contains in total of 128
bits with separate addresses ( Bit 0 of byte 20h has the bit address 0,
and bit 7 of byte 2Fh has the bit address 7Fh).
Three memory type specifiers can be used to refer to the internal
data memory: data, idata, and bdata.
Question 9:
Elaborate the pipeline and parallel processing capabilities of the
unit and hazard management technique.
Disadvantages of Pipelining
Designing of the pipelined processor is complex.
Instruction latency increases in pipelined processors.
The throughput of a pipelined processor is difficult to predict.
The longer the pipeline, worse the problem of hazard for branch
instructions.