subject
Engineering, 30.11.2021 21:40 itsyagirlgona21

Case 1) CPU-initiated data transfer: X EQU … ; a decimal number where X is #iterations.
; Set the source and the destination in A0 and A1 respectively.
LEA $A000, A0 ; 20 CPU cycles
LEA $B000, A1 ; 20 CPU cycles
; Set the transfer repetition to transfer in D7.
MOVE. W #X, D7 ; 12 CPU cycles
; Move long-word data X times. (X * 4 bytes transfer)
LOOP:
MOVE. L (A0)+, (A1)+ ; 28 CPU cycles
SUBI. W #1, D7 ; 8 CPU cycles
BNE. W LOOP ; 10 CPU cycles

Case 2) DMA-initiated data transfer:
Y EQU ... ; a decimal number where Y = X * 4 (in bytes)
; Set the source/destination and the transfer repetition into DMAC. Finally start DMAC.
MOVE. L #$A000, $8000 ; set the source address into DMAC (28 cycles)
MOVE. L #$B000, $8004 ; set the destination address into DMAC (28 cycles)
MOVE. L #Y, $8008 ; set the transfer length (in bytes) into DMAC (28 cycles)
MOVE. L #1, $800C ; start DMAC (28 cycles)

DMAC needs 10 cycles to read long data (4 bytes) from one memory address and to write them to another address. Therefore, DMAC will complete all data transfer in X times.
Finally, DMAC assets an IRQ, which takes 100 CPU cycles until CPU starts handling the interrupt.

Given the above two scenarios, calculate the minimum X iteration and Y = X * 4 bytes if CPU takes advantage of DMAC, (i. e., for cast 2 to run faster)?

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 19:10
The short distance from the objective lens to the object causes problems at high magnification. which of the following is the most serious? a. cleaning the object surface b. positioning the object c. reflection from the object surface. d. illumination of the object
Answers: 1
You know the right answer?
Case 1) CPU-initiated data transfer: X EQU … ; a decimal number where X is #iterations.
; Se...
Questions
question
Chemistry, 31.01.2020 21:42
Questions on the website: 13722363