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
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
Answers: 2
question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
You know the right answer?
Case 1) CPU-initiated data transfer: X EQU … ; a decimal number where X is #iterations.
; Se...
Questions
Questions on the website: 13722359