
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Hardware systems - SOEN228 - TED OBUSCHWITZ - CONCORDIA UNIVERSITY Hardware systems - SOEN228 - TED OBUSCHWITZ - CONCORDIA UNIVERSITY Hardware systems - SOEN228 - TED OBUSCHWITZ - CONCORDIA UNIVERSITY Hardware systems - SOEN228 - TED OBUSCHWITZ - CONCORDIA UNIVERSITY
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!
1
Instructions: ANSWER ALL QUESTIONS in the answer booklets provided. If you make any assumptions, clearly state them in your answer booklet.
Materials Allowed : Course textbook, course lecture notes, ENCS approved electronic calcula- tors.
Location: H539- Time: 19:00-22:
Question 1: [20 points]
The multiply-and-accumulate operation finds use in many digital signal applications. Digital sig- nal processors often include a dedicated instruction as part of their instructions sets which per- form the operation. Consider the following three address instruction:
MAC source1, source2, source3/destination
This instruction will perform the operation:
source3/destination <= (source1 x source2) + source3/destination
In other words, the MAC (the mnemonic for “multiply-and-accumulate” ) instruction multiplies the two specified source operands and adds to result to the third source which also acts as the final destination.
(a) Identify all the addressing modes used in the following instruction:
MAC #NUM, (R0)+, R
(b) The sequence of control steps to perform an instruction fetch using the single-bus internal CPU organization shown in Figure 1 are:
T0: BUS <= PC, MAR <= BUS, sel_temp = 1, F = ADD, ld_result = 1.
T1: READ = 1, MDR <= data_out from memory (this implies ld_mdr = 1 and sel_mdr = 1), BUS <= RESULT, PC <= BUS.
T2: BUS <= MDR, IR <= BUS.
In the above, we assume that main memory will respond (for a READ or a WRITE) within one clock cycle.
(i) What advantage does the multiplexer at the input of the MDR offer in terms of program execu- tion speed?