Sample Questions for Preparing Exam of ELE408

 

 

 

 

1.        What are the different methods that activate a DMA channel in MCF5208?

 

2.        Design a 6 bits linear code that can detect 2 bits errors.

 

 

3.        What is the miss ratio when accessing a row of 5 by 6 matrix stored in column-major? Assume the cache is direct-mapped with 8 lines and each matrix element occupies one cache line

 

4.        Write an interrupt program to display ABAB on the display

 

5.        Write a program to move N words from one memory location to another

 

6.        Do the same as 5 but using DMA

 

7.        Consider the following program. What happens after running the program?

MOVEA.B #$FE, A0

ADD.L #$E000,D0

ADD.L #$FE,D0

ADDA.L #$E000,A0

ADDA.L A0, A1
   

8.        The 16 bits status register of MCF5208 is used to

a)      store the processor status

b)      make an interrupt request

c)      set the conditional codes (CCR) to 1

d)      determine when a trace mode is used

e)      None of the above is correct