





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Name: ____________________________________ unique name: _______________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
Scores:
smallest value: __________
largest value: __________
0x3864FFFF
NRZI encoding will require less bit-stuffing as bit-stuffing is only required if N bits in a row are 1 as opposed to N bits in a row being constant 1 or constant 0.
Memory is as follows Address 0x1000 0x1001 0x1002 0x1003 0x1004 0x1005 0x1006 0x DATA 0x11^ 0x22^ 0x33^ 0x44^ 0x55^ 0x66^ 0x77^ 0x
(There maybe more cycles listed than you will need. Leave the extra blank.)
Cycle # #TS #TA TSIZE ADS DATA
2 1 0 10 0x00001002 -- -- 33 44
3 0 1 10 0x00001004 -- -- -- --
4 1 0 10 0x00001004 55 66 -- --
mflr r stwu r1,-16(r1) stw r0, 20(r1) stw r31, 12(r1)
The DATA_READ register holds the next data byte to be read. After being read, the RDR field of STATUS will change to a zero until the DATA_READ register contains the next byte of the packet (when the RDR field will change to a one.) The RPF field of STATUS is used to delimit packets. bit 7 6 5 4 3 2 1 0 field DATA R/W R Reset 0
DATA_WRITE The DATA_WRITE register is where data to be sent from the NIC is placed. Each time it is written the data written to the register is added to the current packet. The WBR bit of the STATUS register is used to indicate the DATA_WRITE is ready to receive its next packet. The EDP field of CMD is used to indicate that the previous byte written to DATA_WRITE was the last byte of the packet. bit^7 6 5 4 3 2 1 field DATA R/W R Reset^0
a. On the following page, draw the circuitry needed to make it so the registers described above are at locations 0x00 (for STATUS), 0x01 (for CMD), 0x (for DATA_ READ) and 0x03 (for DATA_WRITE). There should be no shadow locations. You may use gates, MUXes, and a “delay” box (as in the slides). [15]
(On the page thereafter, you will be asked to write the PowerPC assembly code needed to read a packet from the NIC and send the packet back but with each bit inverted.)
Data[7:0]
EN
VALUE[7:0]
CLK
VALUE[7:0]
CLK
VALUE[7:0]
For STATUS and DATA_READ, if the EN input is 1 the register’s value is driven out on VALUE[7:0], otherwise the output is HiZ (high impedance)
For CMD and DATA_WRITE the data on VALUE[7:0] will be written to their register value on the rising edge of CLK.
You may only use gates, MUXes and a “DELAY” box (as in the slides). You may either draw wires or simply label wires so that any two wires with the same name (outside of the registers) are assumed to be connected.
EN
VALUE[7:0]
ADS ADS ADS ADS ADS ADS REQ#
SEL
SEL ADS ADS CMD
SEL ADS ADS CMD
SEL ADS ADS CMD
SEL ADS ADS CMD
Data[7:0]
Data[7:0]
Data[7:0]
Data[7:0]