0% found this document useful (0 votes)
128 views7 pages

ESD Assignment1

The document discusses an ARM7TDMI processor question. It states that on reset, the processor is in ARM state and supervisor mode. It notes the number of states taken for arithmetic, load, and store instructions. It also discusses the number of states taken for a BGE instruction depending on if the branch is taken or not taken. Finally, it provides performance measurements for two codes under different conditions comparing the number of states taken.

Uploaded by

chandu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views7 pages

ESD Assignment1

The document discusses an ARM7TDMI processor question. It states that on reset, the processor is in ARM state and supervisor mode. It notes the number of states taken for arithmetic, load, and store instructions. It also discusses the number of states taken for a BGE instruction depending on if the branch is taken or not taken. Finally, it provides performance measurements for two codes under different conditions comparing the number of states taken.

Uploaded by

chandu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

 Directory and uVision Project created.

Q1)
a) On reset what is the ARM7TDMI processor's state and mode of operation?

On Reset ARM7TDMI processor is in ARM state Supervisor mode


b) How many states are taken for the execution of an Arithmetic instruction, Load and Store
instruction respectively?
States taken for Arithmetic instruction = 1
States taken for Load instruction = 3
States taken for Store instruction = 2

c) Are the number of states taken for completion same for BGE instruction if the branch –
(1) is taken (2) not taken?
(1) 3 States
(2) 1 States

d) Measure the performance of code-1 and code-2 for the following conditions
Code_1 (A<B)
Code_1 (A>B)

Code_1 (A=B)
Code_2 (A<B)

Code_2 (A>B)
Code_2 (A=B)
Condition Code-1- States Code-2- States
a<b 33 (8.25uS) 30 (7.5uS)
a>b 29 (7.25uS) 29 (7.25uS)
a=b 29 (7.25uS) 29 (7.25uS)

Q2) Write an ALP program for ARM Cortex M3/4 to perform the following
(1) SVC is to be called from an application task running at Thread unprivileged mode.
(2) Two parameters are passed to the handler via R1, R2.
(3) If the SVC number is 0x20, then the addition of the data in R1,R2 should be performed
(4) Return and resume application task
Give suitable screen shots of the KEIL IDE-in debug mode to demonstrate the desired
outputs. Ensure that the screenshot captures system time & day.

You might also like