Lab report 0

docx

School

San Jose State University *

*We aren’t endorsed by this school

Course

124

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

3

Uploaded by ElderLlamaPerson396

Report
IEEE Paper Lab Report 0
Abstact- This document is a lab report for the introductory lab for CMPE 124 which included downloading and setting up the Intel Quartus Prime Lite and ModelSim, followed by writing a Verilog code for a two-way light controller circuit. I. INTRODUCTION This document is a lab report of a two- way light controller circuit, and this document includes a logic circuit diagram, truth table, the Verilog code, simulation waveforms, Results and Observations. II. LOGIC CIRCUIT Fig 1. Logic Circuit Diagram Figure 1 shows the logic circuit diagram with input as x1 and x2 and output as f using different gates to produce the output so that the circuit acts like a two-way light controller. III. TRUTH TABLE TABLE I TRUTH TABLE FOR THE CIRCUIT x1 x2 0 0 0 1 1 0 1 1 Table I is the truth table for the circuit diagram and it shows an XOR logic. IV. VERILOG CODE Fig 2. Verilog code Figure 2 is the Verilog code for the two- way light controller circuit and the file is saved as light.v . Fig 3. Compilation Successful V. VHDL CODE Figure 3 shows the compilation of the Verilog code was successful and also tells us some additional compilation details Fig 4. ModelSim Code Part 1 the waveform matches with the truth table and XOR Logic Gate.
Fig 5. ModelSim Code Part II Figure 4 and Figure 5 shows the ModelSim code of the two-way light controller circuit which is also a VHDL file. VI. SIMULATION WAVEFORMS Fig 6. Simulation Waveforms Figure 6 is a simulation waveform for the two-way light controller circuit. VII. OBSERVATIONS While observing the waveform, we can see it follows the truth table and XOR Gate which means that the build and compilation were correct. VIII. CONCLUSION In conclusion, we got to know about how to download an setup Intel Quartus Prime Lite and ModelSim and we wrote a Verilog code for a two-way light controller circuit that we simulated into a waveform and confirmed that it’s correct by verifying the 0 and 1 based on the truth table and observed that the nature of
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help