Computer Science 220
Assembly Language & Computer Architecture
Fall 2011, Siena College
Your task is to design, on paper or in Logisim, then build, on a Proto-Board, the memory interface for a very small computer. You will use a number of readily available TTL components as building blocks.
We will make good use of our digital logic lab stations: our logic switches will represent 8 input lines from the "outside world" that can each carry a 0 or a 1, our 2 "debounced" pushbuttons that produce the value 1 when pressed, 0 otherwise, will trigger the functionality of our circuit, and the 8 output lines that can be sampled for values will be connected to our logic indicators. In a real computer, these input and output lines of our circuit would connect to other components instead of switches, pushbuttons, and logic indicators.
Due to equipment limitations, you will need to work in groups of 3 for this lab. You may store your Proto-Boards with your circuits in the new cabinet at the front of Roger Bacon 350 when you are not working on them. Be sure to label them with your names.
Circuit Components
Your implementation should include the following units:
Use the 74LSDataBook.pdf file to decide which chips you need. You should find appropriate chips in the lab. The memory chips can be found in an unmarked drawer in the bottom row in the chip storage unit.
Circuit Functionality
When completed, the entire circuit should have the following capabilities and behaviors:
You can think of S1 as enabling a read/write between the MBR and memory (CS from our class discussions), with S2 controlling the direction of the data flow (RD/(not)WRT, or who's "driving" the data bus). Note: ensuring proper management of the data bus (i.e., at most one driver at a time) is one of the most important design decisions in this circuit. While the 9114's data pins will drive their output only when the chip is enabled and reading, the switches and the chips you are likely to choose to construct your registers will always be driving their outputs. You will need tristate devices to ensure that their outputs are only placed on the data bus when needed (and when no one else is driving).
Guidelines
A pin-and-chip diagram is required before you begin wiring. You are encouraged to use Logisim, taking advantage of the 7400-series circuit library, to create your diagram, but a neatly hand-drawn diagram is also acceptable. The 9114 cannot be represented as a subcircuit chip in Logisim, as Logisim does not support I/O pins, but you can use Logisim's RAM component with an address bit width of 10 and data bit width of 4 to achieve a very similar functionality. The important differences: The Logisim RAM stores the value on the data pins when chip select is high and the clock input is on the leading edge (changing from 0 to 1). The 9114 chip stores the value on the data pins when chip select is low and write enable is low. The Logisim RAM places a value on the data pins ("drives the data bus") when chip select is 1 and Load is 1. The 9114 chip places a value on the data pins when chip select is 0 and write enable is 1. In other words, the 9114 has an active low chip select and an active low write enable.
The more complete your design before you begin wiring, the better your chances of a smooth wiring process and of a working circuit in the end.
Your breadboard should be neat, with non-I/O (pin to pin) wires as short as possible and flat to the board. All chips and many of your wires should be labeled (use the tape and small stickers provided). This will not only aid in grading, but will be very helpful as you construct the circuit.
A correct circuit can be built using as few as 7 chips, but reasonable implementations may use a few more.
Be sure to design, implement, and test your circuit incrementally. Make sure each component is working as expected as you add it to your circuit. While all logic indicators and switches have assigned purposes in the final circuit, you may wish to use them in other ways during the testing of your individual components.
Grading and Evaluation
This lab is graded out of 40 points.
You should plan to demonstrate your circuit no later than 4:00 PM, Tuesday, November 22, 2011. Circuits will be graded mostly on correctness, but will also factor in good design, and neatness of wiring.
Grading Breakdown | |
Loading MAR from switches | 4 points |
Address bus carries MAR to memory | 2 points |
Loading MBR from switches | 4 points |
MBR on data bus for memory write | 4 points |
Memory captures data bus on write | 4 points |
Memory drives data bus on memory read | 4 points |
Loading MBR from data bus on memory read | 4 points |
MBR contents always on LI1-LI4 | 2 points |
Data bus always on LI5-LI8 | 2 points |
Correct 9114 usage | 2 points |
Simplicity of Design | 4 points |
Neatness of Wiring | 4 points |
In the above table, half credit is based on the pin-and-chip diagram, half is based on the actual constructed circuit.
Note: grades will not be recorded until you have taken down your circuit and neatly put away all wires and chips.