CS计算机代考程序代写 flex Bus-based Transfers

Bus-based Transfers
Digital systems typically have a considerable number of registers N.
Typically 8  N  256
Programmer need to be able to make transfers
between any pair of them.
Let us consider the N=3 and use 2:1 MUXs to interconnect R0, R1, R2.
The result is on the next slide.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 1

Register Transfer via MUX Diagram
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 2

RT
S2 S1 S0
L2 L1 L0
Description
R2R1 R2R1,R1R2
1 X X 1 1 X 1 0 0
1 0 0 1 1 0 1 1 1
Point-to-Point Reg.Exchange Reg.Rotate
R2R1,R1R0 R0  R2
Register Transfer via MUXs
This is a very flexible system for it can make up to three independent transfers in one clock period.
R2R0,,R1R0
But this is very costly in terms of interconnect, requiring 6*n MUX input
0 0 X
1 1 0
Reg.broadcast
connections.
To connect N*n-bit registers will require (N-1)*N*n wires.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 3

Register Transfer via MUX & Bus
To reduce the amount of interconnects we can use 3-1 MUXs with a single MUX-to- Register bus connection.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 4

R0  R2 R0R1,R2R1 R0  R1, R1  R0
1 0
0 1 IMPOSSIBLE
0 0 1 1 0 1
Point-to-Point Reg.Broadcast Single source only
Register Transfer via 3-1 MUXs and MUX–to-Register Bus
This results in the loss of some flexibility:
RT
S1 S0
L2 L1 L0
Description
But the MUX input connections have reduced from 6*n to 3*n. For N Register we need only N*n wires.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 5

Tri-state Bus
Tri-state buffers provide the means to construct a wired-or of arbitrary fan-in, with which we can effectively disperse the MUX on the previous slide right back to the register latches. That is we build our 3:1 MUX as:
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 6

Tri-state-bus vs. MUX-bus
This results in a solution seen on the right (tri-state), which has the same functionality as the MUX based solution on the left, using just a single bi- directional bus.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 7

RT
E2 E1 E0
L2 L1 L0
Description
R0R2 R0R1,R2R1 R0  R1, R1  R0
1 0 0
0 1 0 IMPOSSIBLE
0 0 1 1 0 1
Point-to-Point
Bi-directional Tri-state Bus
With this arrangement it is possible to connect N*n-bit register with N-1 paths of width n.
Reg.Broadcast
Single source only
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 8

Memory Transfers
Typically processor memories are addressed by a number of address registers:
PC, MAR, IOR
Address register information is transmitted over an address
bus to memory M.
Similarly data is transferred to/from a number of data registers over a data bus.
Data register: IR, DR, BUF
The schematic on the next slide illustrates how we may organise three address register A, selected by I, and data register D, selected by J, to implement read/write on memory M.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 9

IJ J
READ: D[J]  M[A[I]] WRITE: M[A[I]]  D[J]
PC MAR IOR BUF DR IR
M
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 10

a) b)
The data path which performs data-processing operations on the data stream.
Datapath
In all digital systems we can partition the structure into two sections:
The control unit which determines the schedule for these data processing operations.
Control Inputs
Data Input
Control Outputs
Status Signals
Data Output
Control Unit
Control Signals
Datapath
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 11

Datapath Schematic
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 12

Register File & Functional Unit
In practice the three functional micro-ops are implemented in one compact circuit, the Function Unit, composed of the ALU and Shifter.
Data for this Functional Unit comes from a physical adjacent Register file, with dual MUX-busses able to supply two operands per clock cycle.
Since the register file is itself modest in size typically 8-32 register, there must be provision to send and receive data to/from the main memory system via DATA IN and DATA OUT.
CSU22022, 4th Lecture, Dr. M. Manzke, Page: 13