Professional Documents
Culture Documents
About Students:
Name Matric No. Section:
1. Instructor’s Name:
2.
3.
4.
About Experiment:
Title Submission date
/
100
BEJ40401 Semester 1 2022/23
Peer Assessment (to be filled in by the group leader)
Group leader full name :
Group member 1 full name :
Group member 2 full name :
Group member 3 full name :
Scale
Criteria
5 4 3 2 1 0 Marks
Lab Activities (C) It Varies, depending on the activity assigned
Observations (C) It Varies, depending on the question assigned
Conclusion (P) Able to write a Able to write a Able to write a Able to write a Not able to write a No conclusion
conclusion with conclusion clearly conclusion clearly conclusion with conclusion. provided /5
excellent clarity, and but require minor limited clarity and
understandably.
understandability, improvements. require further
and focus. improvements.
Demonstration (A) Very clear evidence Able to demonstrate Able to demonstrate Able to demonstrate Demonstration No
of knowledge and knowledge and knowledge and knowledge and without demonstration
understanding understanding in understanding in understanding in understanding the from student/s
practice and require practice but require
demonstrated in practice well. principle; cannot scale * 2 = / 10
minor improvements.
practice. improvements. relate the concept
to the
demonstration.
Ethics (A) Solution ideas are Solution ideas are Little solution ideas Some of the Most of the All the solution
written using their written using their are adopted from solution ideas are solution ideas are ideas are copied
original language, original language, others, written with copied from others, copied from from others
written with clear written with understandability. without fully others, without /5
knowledge, knowledge and understand the fully understand
understandability, understandability. concept. the concept.
and focus. / 10
The report is The report is The report is The report is The report is No report
submitted before or submitted a day submitted 2 days submitted 3 days submitted more submission /5
on the dateline. after the dateline. after the dateline. after the dateline. than 3 days after
the dateline.
Table of Content
Table of Content...........................................................................................................iv
BEJ40401 Semester 1 Session 2022/23
Pre-Lab Answers..........................................................................................................1
Observations.................................................................................................................6
Questions......................................................................................................................7
Conclusions..................................................................................................................7
iv
1 Briefly explain four general categories of techniques in device identification as follows: Mark:
. i. Multiple interrupt lines /3
ii. Software poll
iii. Daisy chain (hardware poll, vectored)
iv. Bus arbitration (vectored)
Answer:
2 Briefly explain four types of I/O commands that an I/O module may receive when it is Mark:
. addressed by a processor as follows:
i. Control /2
ii. Test
iii. Read
iv. Write
Answer:
Control :
Test :
Read :
Write :
Lab Activity 1 / 15
Step Instructions Snapshot / Answer Marks
1. In the compiler window, check only the boxes Screenshot /1
Generate code, Enable optimizer and
Redundant Code. Enter the following source code
and compile it:
program Vectors
sub IntVect1 intr 1
writeln ("This is intr 1")
end sub
sub IntVect2 intr 2
writeln ("This is intr 2")
end sub
sub IntVect5 intr 5
writeln ("This is intr 5")
end sub
while true
wend
end
program PolledInt
var v integer
v=0
writeln("Program Starting")
while true
read(nowait, v)
for i = 1 to 100
if v > 0 then
break *
end if
write(".")
next
wend
writeln("Program Ending")
end
program VectoredInt
var v integer
sub InputInt intr 1
read(nowait, v)
end sub
v=0
1. From Lab Activity 1, comment on your observations by referring to Table 2 and the Mark:
messages displayed on the console after clicking the TRIGGER button (include the
/9
displayed contents of the program stack).
Answer:
Activity Observation
after clicking the TRIGGER :
button at INT1
after clicking the TRIGGER :
button at INT2
after clicking the TRIGGER :
button at INT5
2. From Lab Activity 2, briefly explain what the two programs are doing (note where the Mark:
read statement is in this case).
/6
Answer:
PolledInt VectoredInt
1. Based on your observation in the previous exercise, briefly explain the difference in the Mark:
behaviours of the two programs, PolledInt and VectoredInt, with respect to the speed of
/ 10
response to input. Explain why this difference.
Answer:
PolledInt VectoredInt
2. Suggest and very briefly describe five reasons where you would use the Polled Mark:
Interrupt method in preference to the Vectored Interrupt method.
/5
Answer:
i.
ii.
iii.
iv.
v.
Conclusions /5
Guide:
- Explain what you have learned in activities 1 and 2
- Refer back to the outcomes at the beginning of the lab sheet
Conclusion: