









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!










College of Engineering University of Massachusetts Amherst
Final Exam Friday, December 19, 1:30 โ 3:30 PM, Marcus 131 (Auditorium). Exam is comprehensive (that is, will cover the entire course). Practice exam (2006 final exam) and solutions are on the web site. Lecture tomorrow will be devoted to Exam Q&A. My office hours before exam: (all in Marcus 215B) Friday, Dec. 12, 2:30 โ 3:30 PM Tuesday, Dec. 16, 4:00 โ 5:00 PM Friday, Dec. 19, 10:00 โ 11:00 AM
Example: Consider an 8 x 4 ROM: 4 3 x 8 Decoder
A 0 A 1 A 2 address lines B 0 B 1 B 2 B 3 output lines
Example: In the 8 x 4 ROM of the previous example, suppose we want to store the words: 1101, 1001, 1001, 1001, 0101, 1010, 0111 and 1010. We can set up an input (address) - output (stored words) truth table for the ROM as follows:
3 x 8 Decoder
A 1 A 0 address lines B 3 B 2 B 1 B 0 output lines For example: If the address lines are (A 2 A 1 A 0 )=010, then line 2 out of the decoder carries a 1; all other lines are at 0. Line 2 is disconnected from the OR gates for B 1 and B 2 and remains connected to the OR gates for B 0 and B 3. So, the output (stored word) for address 010 is (B 3 B 2 B 1 B 0 )=1001.
Example: The 8 x 4 ROM of the previous example can be interpreted as implementing the logic functions: B 0 = ฮฃ {0,1,2,3,4,6} = A 2 โ A 1 โ A 0 โ + A 2 โ A 1 โ A 0 + A 2 โ A 1 A 0 โ + A 2 โ A 1 A 0 + A 2 A 1 โ A 0 โ + A 2 A 1 A 0 โ B 1 = ฮฃ {5,6,7} = A 2 A 1 โ A 0 + A 2 A 1 A 0 โ + A 2 A 1 A 0 B 2 = ฮฃ {0,4,6} = A 2 โ A 1 โ A 0 โ + A 2 A 1 โ A 0 โ + A 2 A 1 A 0 โ B 3 = ฮฃ {0,1,2,3,5,7} = A 2 โ A 1 โ A 0 โ + A 2 โ A 1 โ A 0 + A 2 โ A 1 A 0 โ + A 2 โ A 1 A 0 + A 2 A 1 โ A 0 + A 2 A 1 A 0
Example: In the previous PROM example, we wanted to generate four functions (B 0 ,โฆ,B 3 ). Now letโs generate these with a PLA. First, use the truth table and Karnaugh maps to find simplified expressions for each function and its inverse. B 0 = ฮฃ {0,1,2,3,4,6} = A 2 โ A 1 โ A 0 โ + A 2 โ A 1 โ A 0 + A 2 โ A 1 A 0 โ + A 2 โ A 1 A 0 + A 2 A 1 โ A 0 โ
1 1 1
1 1 1
Example: In our example we have: B 0 = A 2 โ + A 0 โ B 0 โ = A 2 A 0 B 1 = A 2 A 0 + A 2 A 1 B 1 โ = A 2 โ + A 1 โA 0 โ B 2 = A 1 โ A 0 โ + A 2 A 0 โ B 2 โ = A 0 + A 2 โA 1 B 3 = A 2 โ + A 0 B 3 โ = A 2 A 0 โ We see that in order to generate B 0 โ, B 1 , B 2 , and B 3 โ, we need a total of four product terms: A 2 A 0 A 2 A 1 A 1 โ A 0 โ A 2 A 0 โ So: Our PLA will require a total of four AND gates.
Product Term Inputs A 2 A 1 A 0 Outputs B 3 B 2 B 1 B 0 A 2 A 0 1 - 1 - - 1 1 A 2 A 1 1 1 - - - 1 - A 1 โ A 0 โ - 0 0 - 1 - - A 2 A 0 โ 1 - 0 1 1 - - C T T C 1 indicates input is in term; 0 indicates input is in term in complement form; - indicates input is not in term. 1 indicates term is in function; - indicates term is not in function. T indicates function itself is generated; C indicates complement of function is generated.