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, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
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
Mathematics, 02.01.2020 00:31
Questions on the website: 13722361