Digital Logic Lab Assignment
Digital Logic Lab Assignment
Question 1
Explain the operation of the D flip-flop. Design and implement a D flip-flop
bidirectional counter which produces the following repeated binary sequence: 0, 7, 1,
6, 2, 5.
[16 marks]
Question 2
Implement a four Kbyte memory unit using eight 512 x 8-bit RAM chips. Be sure to
provide a table which shows the address ranges of each RAM chip and an explanation
of how the unit works. You may use the RAM chips from within Logisim but any other
components (if required) must by designed and implemented using basic logic gates
only. Assume byte level addressing.
[15 marks]
Question 3
Greg and Greg (G&G) is a locally owned company that specializes in making fuel
tanks for gas operated Radio Controlled (RC) recreational vehicles (see Figure 1).
Their newest tank contains a four-bit (4) sensor that indicates the level of gasoline (G)
in the tank. G&G has challenged your team to design and implement an embedded
system to display the levels of gasoline (G) in their tank according to the specifications
provided in Table 1 below. Unfortunately, only 2-Input NAND gates are available for
the actual implementation. Hint: If the sensor reads 0000 then G = 0 (i.e., the tank is
empty). Similarly, 1111, indicates that the tank is full.
Page 1 of 2
Condition Desired System Response
G ≥ ¾ tank Low(L), Quarter (Q), ¾ (T) and Full (F) tank LEDs are active
½ tank ≤ G < ¾ tank Low(L), Quarter (Q), and ¾ (T) tank LEDs are active
¼ tank ≤ G < ½ tank Low(L) and Quarter (Q) tank LEDs are active
G < ¼ tank Only the Low (L) LED is active
G=0 No LEDs are active
Table 1 - Design Specifications
F
T
Q
L
[14 marks]
* End of Lab*
Page 2 of 2