0% found this document useful (0 votes)
11 views8 pages

Section 001: Read This Before Starting!

This document contains a 13 question test on computer organization topics like Karnaugh maps, logic circuits, and flip-flops. The test includes true/false, fill-in-the-blank, and drawing questions to assess understanding of key concepts and requires showing work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

Section 001: Read This Before Starting!

This document contains a 13 question test on computer organization topics like Karnaugh maps, logic circuits, and flip-flops. The test includes true/false, fill-in-the-blank, and drawing questions to assess understanding of key concepts and requires showing work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Points missed: _____ Student's Name: _________________________________

Total score: _____ /100 points

East Tennessee State University


Department of Computer and Information Sciences
CSCI 2150 (Tarnoff) – Computer Organization
TEST 2 for Fall Semester, 2003

Section 001
Read this before starting!

• The total possible score for this test is 100 points.


• This test is closed book and closed notes.
• All answers must be placed in space provided. Failure to do so may result in loss of points.
• 1 point will be deducted per answer for missing or incorrect units when required. No assumptions
will be made for hexadecimal versus decimal, so you should always include the base in your
answer.
• If you perform work on the back of a page in this test, indicate that you have done so in case the
need arises for partial credit to be determined.
• Calculators are not allowed. Use the tables below for any conversions you may need. Leaving
numeric equations is fine too.

Binary Hex Binary Hex Power of 2 Equals


0000 0 1000 8 23 8
0001 1 1001 9 24 16
0010 2 1010 A 25 32
0011 3 1011 B 26 64
0100 4 1100 C 27 128
0101 5 1101 D 28 256
0110 6 1110 E 29 512
0111 7 1111 F 210 1K
220 1M
230 1G

“Fine print”

Academic Misconduct:
Section 5.7 "Academic Misconduct" of the East Tennessee State University Faculty Handbook, June 1, 2001:

"Academic misconduct will be subject to disciplinary action. Any act of dishonesty in academic work constitutes
academic misconduct. This includes plagiarism, the changing of falsifying of any academic documents or materials,
cheating, and the giving or receiving of unauthorized aid in tests, examinations, or other assigned school work.
Penalties for academic misconduct will vary with the seriousness of the offense and may include, but are not limited
to: a grade of 'F' on the work in question, a grade of 'F' of the course, reprimand, probation, suspension, and expulsion.
For a second academic offense the penalty is permanent expulsion."
1. True or False: If done properly, there is exactly one possible arrangement for the rectangles of
ones in a Karnaugh map. (2 points)

The answer is FALSE. To show this, look at the following example (note the red rectangle):

CD CD
AB 00 01 11 10 AB 00 01 11 10
00 0 1 1 0 00 0 1 1 0
01 0 0 1 0 01 0 0 1 0
11 0 0 1 1 11 0 0 1 1
10 0 0 0 0 10 0 0 0 0

2. In a 4-variable Karnaugh map, how many variables (e.g., A, B, C, etc.) does a product have if its
rectangle of 1's contains 8 cells? (2 points)
Remember that each time the size of a rectangle is doubled (e.g., 1 cell doubled to 2 cells, 2 cells
doubled to 4 cells, etc.) a single input variable drops out. In addition, a rectangle of size 1 uses all
of the input variables. Therefore, since a rectangle of 8 cells has doubled three times over the size
of a single cell rectangle, there are 3 variables that have dropped out. Therefore, a product from a
rectangle of eight cells in a 4-variable K-map has 1 variables. (You could also show this by
creating an example.)
3. True or False: In order to keep a Karnaugh map in 2-dimensions, i.e., so that it can be written on a
piece of paper, we are limited to 4 input variables. (2 points)
The answer is TRUE. It is impossible to label 8 rows with three binary variables so that only one
binary variable changes between adjacent rows.
4. Create a Karnaugh map from the truth table below. Do not worry about making the rectangles.
(5 points)
A B C X C
AB 0 1
0 0 0 0 00 0 1
0 0 1 1
0 1 0 1 01 1 1
0 1 1 1 11 0 0
1 0 0 1 10 1 0
1 0 1 0
1 1 0 0
1 1 1 0
5. Derive the minimum SOP expression from the Karnaugh map below. (6 points)
CD
AB 00 01 11 10 Rectangle 1 Rectangle 2 Rectangle 3
00 1 1 1 1 A B C D A B C D A B C D
3 0 0 0 0 1 1 1 1 0 0 0 0
01 1 0 0 1
1 11 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 1
0 0 1 0 1 1 1 0 0 0 1 1
10 0 0 1 1 0 1 1 0 1 0 1 0 0 0 1 0
2 B and C drop out B and D drop out C and D drop out
and A and D are and A and C are not and A and B are
Note that the red inverted. inverted. inverted.
rectangle is a duplicate _ _ _ _
A·D A·C A·B
of the others and should
be removed.

The final answer is:


_ _ _ _
A·D + A·C + A·B

6. The circuit shown to the right was discussed in class and had a special
application for digital circuits. What was that application? Hint: F is D Q
a periodic clock signal. (2 points)
F Q

The circuit was called a divide by two circuit and the output of Q was a periodic clock signal that
had a frequency half that of F.

7. For the circuit to the right, what value does Q have? (2 points) 1
Q
a.) 0 c.) Must know previous value for Q to answer.
b.) 1 d.) Illegal state. Should never have these inputs. Q
0
The answer is A. If you recall from our introduction to latches, this is the S-R latch with the top
input being ^S and the lower input being ^R. When ^R is low and ^S is high, the latch is in its
RESET state where the Q output is reset to zero.

8. True or False: For the circuit in the previous problem, if the inputs changed from 1-0 (the values
shown) to 1-1, the value of Q would remain unchanged. (2 points)
The answer is TRUE. Once again, from our discussion on the S-R latch, when both ^S and ^R go
to 1, the previous values of Q and ^Q remain unchanged.

9. In the space to the right, draw the decoding logic


circuit with an active-low output for the inputs A
A = 0, B = 1, C = 1, and D = 1. (5 points) B
C
D
10. In a truth table, the symbol ↑ indicates that the input is: (2 points)
a.) a logic 0 c.) changing from a 1 to a 0 e.) this is an output symbol, not an input
b.) a logic 1 d.) changing from a 0 to a 1 f.) a "don't care"

The up arrow indicates a rising edge, i.e., a transition from a 0 to a 1. Therefore, the answer is D.

11. Show the D flip-flop output waveform Q based on the inputs D and CLK indicated in the figure
below. Assume the flip-flop captures on the rising edge. (6 points)
S

D Q S

CLK D

CLK

Note that the ^S input starting off as a 0 forces the Q output to be a 1. Also note that once ^S goes
to 1, the output Q can only change when there is a 0 to 1 transition on the clock, CLK.
12. What does the term active low mean? (3 points)
The term describes a circuit where the active state occurs when a 0 is placed on the input or output
described as active low. The circuit is idle when a 1 is placed on the input or output.
13. How many latches or flip-flops are needed to realize a state machine with 34 states? (3 points)
A state machine with 34 states requires numbers from 0 to 3310 to uniquely number each state.
(Remember to begin numbering at 0!) Since 3310 is the largest number we need to represent, then
it’s going to require the most digits to be stored by the latches. Since 3310 = 1000012, then 6 digits
are needed and therefore, 6 latches are needed. Another way of looking at the problem is that 33 is
greater than 31, the largest number representable with 5 digits, but less than 63, the largest number
representable with 6 digits. Therefore, 6 latches will be needed.
14. Create the next state truth table and the output truth table for the state diagram below. Use the
variable names S1 and S0 to represent the most significant and least significant bits respectively of
the binary number identifying the state. (8 points)
P=1 Next State T.T. Output T.T.
11 P=0 10
0 0 S1 S0 P S1' S0' S1 S0 X
0 0 0 1 1 0 0 1
0 0 1 1 0 0 1 1
P=1 P=0
P=0 0 1 0 0 1 1 0 0
P=1 0 1 1 0 0 1 1 0
1 0 0 0 1
01 00 1 0 1 1 0
P=0 1 1 1 1 0 0 1
1 1 1 0 0
P=1
15. Make the state diagram that will output a ‘1’ when the sequence ‘110’ is detected in a serial stream
of bits, D. For example, if the following binary stream is received:
0 0 1 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 1 1 1 0 1 0 0 1

then 1’s will be output here. Otherwise, the system will output zeros. (7 points)
Initial 1
state No I=1 I=1
digit
digits 0 2 I=1
0 I=0 digits
I=1 0
I=0
I=0 All
digits I=0
1
16. The three Boolean expressions below represent the next state bits (S0' and S1') and the output bit
X based on the current state (S0 and S1) and the input A. Draw the logic circuit for the state
machine including the flip-flops and output circuitry. Be sure to label flip-flop inputs and other
signals.
(8 points) S ' = A S' = SA X= S S
0 1 1 0 1

S1' D S1
Q

CLK
X

S0' D S0
A Q

CLK
Clock

17. For the active-low output decoder shown to the right, Fill in the
fill in the values for all of the outputs D0 through D3. ones and
D0 0
Assume S1 is most significant bit. (3 points) S1 D1 1 zeros for
0
0 S0 D2 1 each of
D3 1 these
outputs.

18. How many D latches or flip-flops are contained in a RAM memory that has 20 address lines and 8
data lines? (Don't do the calculation; only write the equation with the correct values.) (3 points)
First, there are 220 memory locations, one for each unique combination of 1's and 0's for the address
lines. Each memory location contains 8 latches, and therefore, the number of latches is equal to:

220 * 8 = 8 Meg

19. Select the invalid setting (if any) of the memory bus signals R and W? (2 points)
a.) R = 0, W = 0 b.) R = 0, W = 1 c.) R = 1, W = 0 d.) R = 1, W = 1 e.) None

Since the active low signals ^R and ^W control whether the system is reading or writing to a
memory location, the case where they are attempting to both read and write at the same time is
invalid. Therefore, the answer is A.
20. What are the high and low addresses (in hexadecimal)
A15
of the memory range defined with the chip select A14
shown to the right? (6 points) A13 CS
A12

The chip select is active when A15 = 0, A14 = 1, A13 = 1, and A12 = 0. The low address occurs when
A0 through A11 are all equal to 0 and the high address occurs when A0 through A11 are all equal to
1.

A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0


Low address = 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
High address = 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1

600016
Low address: _________________ 6FFF16
High address: _____________________

21. For the chip select in problem 20, how big is the memory space for this processor? (3 points)
The processor has a total of 16 address lines (A0 through A15). Therefore, its memory space is
capable of addressing 216 = 26 * 210 = 64K.

22. For the chip select in problem 20, how big is the memory chip that uses this chip select?
(3 points)
Twelve address lines (A0 through A11) go to the memory chip. Therefore, the memory chip has 212
= 22 * 210 = 4K memory locations.

23. What is the largest memory that can have a starting (lowest) address of 1600016? (3 points)
Remember that the lowest address must have all zeros going to the address lines of the memory
chip. Therefore, if we can determine the number of bits equal to zero starting with the least
significant, A0, and going left, then we know how many address lines can be used for the memory
chip. Begin by converting 1600016 to binary.

1600016 = 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0

There are thirteen zeros before you get to the first 1 in the binary value of 1600016. Therefore,
thirteen address lines can go to the memory chip. The answer, therefore, is 213 = 23 * 210 = 8K.

24. How many 16K memories can be placed (without overlapping) in the memory space of a processor
that has 24 address lines? (3 points)
Since 16K = 24 * 210 = 214, then a 16K memory chip has 14 address lines. When connected to a
processor with 24 address lines, 24-14 = 10 address lines are left for chip selects. Therefore, there
are 210 = 1024 (1K) possible combinations of 1's and 0's for the chip selects which means that 1024
16K memories can be placed in the memory space of a processor with 24 address lines.
25. True or false: A 16K memory and a 4 Meg memory can be connected at the same time to the same
address bus of a processor with a memory space of 16 Meg. (2 points)
TRUE: Different size memories can be connected to a single processor as long as a unique range
of memory addresses can be found for each.

26. Using logic gates, design an active low chip select for a RAM placed in a 4 Meg memory space
with a low address of 3000016 and a high address of 37FFF16. Label all address lines used for
chip select. (7 points)

Begin by converting 3000016 and 37FFF16 to binary. Remember that a processor with a 4 Meg
memory space requires 22 address lines (4 Meg = 22 * 220 = 224), so be sure to convert to binary
values with 22 digits.

3000016 = 00 0011 0000 0000 0000 00002


37FFF16 = 00 0011 0111 1111 1111 11112

A21 A20 A19 A18 A17 A16 A15 A14 A13 … A5 A4 A3 A2 A1 A0


Low address = 0 0 0 0 1 1 0 0 0 … 0 0 0 0 0 0
High address = 0 0 0 0 1 1 0 1 1 … 1 1 1 1 1 1

Note that the dividing line between the bits that remain constant and the bits that change from all
ones to all zeros is between address lines A14 and A15. Therefore, A15 through A21 will be the
inputs to the chip select circuitry.

The chip select is always made from a NAND gate with the inputs that are meant to be zeros going
through inverters. The result is shown in the answer below.

A21
A20
A19 __
A18 CS
A17
A16
A15

You might also like