18.04.2014 Views

Adobe PDF - Edwardbosworth.com

Adobe PDF - Edwardbosworth.com

Adobe PDF - Edwardbosworth.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 Boz–7 Implementation of the CPU<br />

GET Op-Code = 01000 (Hexadecimal 0x08)<br />

F, T3: WAIT.<br />

E, T0: IR B1, tra1, B3 IOA. // Send out the I/O address<br />

E, T1: WAIT.<br />

E, T2: IOD B2, tra2, B3 R. // Get the results.<br />

E, T3: WAIT.<br />

As noted above, we can ignore any WAIT signal that is not required by considerations of<br />

memory timing. The first of two microoperations is associated with the dispatch address for<br />

the GET instruction and the second one at the first available micromemory word.<br />

IR B1, tra1, B3 IOA.<br />

Address Micro-Op B1 B2 B3 ALU M1 M2 S2 = 0 S2 = 1<br />

0x08 0 4 0 8 1 0 0 0x24 0x24<br />

IOD B2, tra2, B3 R.<br />

Address Micro-Op B1 B2 B3 ALU M1 M2 S2 = 0 S2 = 1<br />

0x24 0 0 7 7 2 0 0 0x20 0x20<br />

PUT Op-Code = 01001 (Hexadecimal 0x09)<br />

F, T3: WAIT.<br />

E, T0: R B2, tra2, B3 IOD // Get the data ready<br />

E, T1: WAIT.<br />

E, T2: IR B1, tra1, B3 IOA. // Sending out the address<br />

E, T3: WAIT. // causes the output of data.<br />

R B2, tra2, B3 IOD<br />

Address Micro-Op B1 B2 B3 ALU M1 M2 S2 = 0 S2 = 1<br />

0x09 0 0 3 7 2 0 0 0x25 0x25<br />

IR B1, tra1, B3 IOA.<br />

Address Micro-Op B1 B2 B3 ALU M1 M2 S2 = 0 S2 = 1<br />

0x25 0 4 0 8 1 0 0 0x20 0x20<br />

RET Op-Code = 01010<br />

(Hexadecimal 0x0A)<br />

F, T3: WAIT<br />

E, T0: SP B1, + 1 B2, add, B3 SP. // Increment the SP<br />

E, T1: SP B1, tra1, B3 MAR, READ. // Get the return address<br />

E, T2: WAIT.<br />

E, T3: MBR B2, tra2, B3 PC. // Put return address into PC<br />

Here we have three non–waiting instructions plus a WAIT that is necessary for the memory<br />

access. As a result, we must allocate four micro–memory words to the execution.<br />

Page 552 CPSC 5155 Last Revised July 9, 2011<br />

Copyright © 2011 by Edward L. Bosworth, Ph.D. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!