0% found this document useful (0 votes)
16 views2 pages

Digital Logic Lab Assignment Guide

The document provides instructions for a digital logic lab assignment with 3 questions. Question 1 asks to design a D flip-flop bidirectional counter. Question 2 asks to implement a 4Kbyte memory unit using RAM chips. Question 3 asks to design an embedded system to display fuel levels in a tank using a 4-bit sensor and only NAND gates.
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)
16 views2 pages

Digital Logic Lab Assignment Guide

The document provides instructions for a digital logic lab assignment with 3 questions. Question 1 asks to design a D flip-flop bidirectional counter. Question 2 asks to implement a 4Kbyte memory unit using RAM chips. Question 3 asks to design an embedded system to display fuel levels in a tank using a 4-bit sensor and only NAND gates.
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

University of the West Indies (Cave Hill)

Department of Computer Science, Mathematics and Physics


Computer System Architecture (COMP2220)
Digital Logic Lab Assignment
INSTRUCTIONS: Attempt all questions and show ALL working. You are required to
submit both the MSWord file (containing embedded pictures/diagrams/tables & working)
and the *.circ Logisim file in a zipped document.
SUBMISSION DATE: 11:55pm, Monday, March 14, 2024. (REVISED)
SUBMISSION POLICY
All submissions will be done electronically via the course site. A 10% penalty will be
imposed on the first day that the submission is late. A further 5% penalty will be imposed
for each weekday thereafter, up to a maximum of seven days. Assignments more than seven
weekdays late will not be accepted. Exceptions are granted only to those persons providing
a medical certificate that covers the submission date.
PLAGIARISM AND COLLUSION POLICY: All submissions must be the sole work of the
author. Students found to be in breach of this will receive zero.

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

Figure 1 - G&G Fuel Tank

[14 marks]

* End of Lab*

Page 2 of 2

Common questions

Powered by AI

Designing an embedded system using only 2-input NAND gates to indicate fuel levels involves creating a combinational circuit that matches input conditions (sensor readings) with desired output actions (LED configurations). Each level condition (e.g., G ≥ ¾ tank, G < ¼ tank) translates into a Boolean expression which governs which LEDs are active. For example, to show the transition between LED states, the readings of the sensor are translated via logic gates such that necessary conditions are realized using NAND gates. Complex expressions can be simplified using techniques such as De Morgan's Theorems, then implemented completely using NAND gates, leveraging its universal gate capability. This design process demonstrates foundational digital logic design principles by converting real-world requirements into Boolean logic and ultimately into circuit design .

To construct a 4 Kbyte memory unit from eight 512 x 8-bit RAM chips, you would organize the chips to address the total memory size collectively. Since each chip is 512 bytes, eight chips provide 4096 bytes (4 Kbytes) of addressable space. Byte-level addressing implies each location corresponds to one byte. You assign each RAM chip to successive address ranges based on its capacity. For example, the first chip would handle addresses 0x0000 to 0x01FF, the second would cover 0x0200 to 0x03FF, and so forth, until all address space is covered. This table-based address assignment ensures that any access to memory addresses maps correctly onto the correct RAM chip .

Using simulation software like Logisim in digital logic design courses enhances learning by allowing students to visually construct and test digital circuits. It fosters an interactive learning environment where theoretical concepts are applied practically, reinforcing understanding through visual feedback. Students are able to explore complex designs and troubleshoot errors in a risk-free virtual space before implementing any physical components, which deepens comprehension and problem-solving skills. These hands-on experiences facilitated by simulation tools make abstract logic design concepts more accessible and engaging, promoting deeper mastery of the subject matter .

The requirement for individual work in digital logic assignments ensures that students fully engage with the learning material, which contributes to personal mastery of the course content. It promotes independent thinking and self-reliance, essential for understanding complex technical subjects. This policy helps instructors accurately assess each student's competency and progress, tailoring support to individual learning needs. Furthermore, by emphasizing original work, the assignment structure instills a sense of personal accountability and integrity, aligning with professional standards in computer science and engineering disciplines .

Penalties for late submissions in digital logic labs play a disciplinary role, incentivizing students to manage their time effectively and prioritize academic commitments. This system encourages planning and organization, which are valuable skills beyond academics. Such penalties can positively shape behavior by deterring last-minute work and promoting consistent study habits. However, they might also create stress, impacting student outcomes negatively if not balanced with supportive measures like extensions for valid personal circumstances. Overall, these penalties aim to cultivate a disciplined and professional approach to workload management .

The late submission policy, which penalizes students 10% for the first day late and an additional 5% per weekday up to seven days, aims to encourage timely submissions. Such policies can negatively affect students' marks, potentially reducing motivation if they face unexpected delays. However, they also instill discipline and a stronger commitment to deadlines, which are essential skills in both academic and professional contexts. Exceptions for medical reasons provide necessary flexibility, balancing strict adherence to deadlines with compassion for unforeseen personal circumstances, thus supporting equitable participation without lowering academic standards .

Digital logic lab assignments develop problem-solving skills crucial to computer science by requiring students to design, test, and iterate on complex circuit configurations. These tasks demand critical thinking and the application of theoretical knowledge to tangible scenarios, fostering analytical skills as students optimize their designs for functionality and efficiency. Assignments often simulate real-world problems, honing abilities in decomposing large tasks into manageable parts and systematically troubleshooting errors. This iterative problem-solving approach builds resilience and adaptability, equipping students with essential skills for dynamic tech environments .

Enforcing strict plagiarism and collusion policies in computer science lab assignments is essential because it maintains the integrity of the educational process and ensures that students genuinely understand the material. These policies prevent unfair academic advantages, which helps create a level playing field for all students. They also reinforce the importance of independent problem-solving skills, which are crucial for success in technical fields. Violations leading to a zero score underscore the significance of academic honesty and the development of personal responsibility and ethical behavior in professional practices .

Submitting digital logic lab assignments electronically involves uploading documents and simulation files, such as MSWord and *.circ files, to a course platform by a specified deadline. This process offers several benefits over traditional paper submissions, including increased efficiency, reduced environmental impact, and convenience for both students and instructors. It facilitates easier tracking and management of submissions, enabling quick and consistent assessment of work. Moreover, digital submissions often come with timestamps, helping to verify timely completion and submission of assignments, thus discouraging late submissions and enhancing academic integrity .

A D flip-flop is a digital storage device that captures the value of the D-input at a specific point in time and holds it until the input changes. It is often used in designing counters and shift registers. To create a bidirectional counter using a D flip-flop that follows the binary sequence 0, 7, 1, 6, 2, 5, you would first design a state machine that transitions between these states. Each state corresponds to the binary output of the flip-flops. The direction of the count (up or down) would be controlled by an external input determining whether the counter advances to the next state in the sequence or moves backward in the sequence. The states' transitions would be implemented using logic gates and appropriately setting D inputs to achieve the desired sequence .

You might also like