Engineering
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)?

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, johnthienann58
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
image
Engineering, 04.07.2019 18:20, miguel454545
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
Answers: 1
image
Engineering, 04.07.2019 19:10, phantomlizz3233
In general, how do thermosetting plastics compare to thermoplastics in mechanical and physical properties?
Answers: 3
image
Engineering, 04.07.2019 19:20, GusGus11
The power source in a certain welding setup generates 3500w that is transferred to the low carbon steel work with a heat transfer factor of 0.85. the melting factor in the operation is 0.45. a continuous fillet weld is to be made with a cross-sectional area of 23 mm2 determine the travel speed at which the welding can be accomplished.
Answers: 3
Do you know the correct answer?
Case 1) CPU-initiated data transfer: X EQU … ; a decimal number where X is #iterations.
; Se...

Questions in other subjects:

Konu
Geography, 30.04.2021 06:40
Konu
Mathematics, 30.04.2021 06:40