Lecture 25
Lecture 25
1
CS501
Advanced Computer
Architecture
Lecture25
3
• A set of sixteen tri-state buffers is used
for the data isolation.
4
A 16-bit Parallel Input Port for
the FALCON-A at Address 7Eh
and 7Fh
Design#1
5
6
A 16-bit Parallel Input Port for
the FALCON-A at Address
7Eh and 7Fh
Design#2
7
8
Given a FALCON-A processor with a 16-
bit parallel input port at address 7Eh and a
16-bit parallel output port at address DEh.
Sixteen LED branches are used to display
the data at the output port and sixteen
switches are used to send data through
the input port. Write an assembly
language program to continuously monitor
the input port and blink the LED or LED(s)
corresponding to the switch(es) set to
logic 1.
9
• Send the bit pattern to the output
port at the address DEh.
12
Start
wait
wait
13
Example
FALCON-A’s Address
Decoder for an I/O Port at
Address 2Ch
14
15
• Replace the IOW# signal
with the MEMW# signal.
19
Disadvantage
20
21
Data bus multiplexing refers to
the situation :
24
• Each byte transferred over the data
bus has a separate address.
25
If the CPU allows the use of a part of
its data bus during a transfer then:
r1L<7..0> := r1<7..0>
r1H<7..0> := r1<15..8> 26
The advantage of data bus
multiplexing:
27
Disadvantages
Logical Description 7 6 5 4 3 2 1 0
Address
0 8-bit output port for D<7> D<6> D<5> D<4> D<3> D<2> D<1> D<0>
DATA
1 8-bit input port for BUSY ACKNLG# PE# SLCT ERROR# Unused Unused Unused
STATUS
2 8-bit output port for Unused Unused DIR IRQEN SLCT IN# INIT# Auto Feed STROBE#
CONTROL XT#
32
Summary
33
Review
34
Problem Statement:
35
• The Centronics interface requires at
least three I/O addresses.
38