Lab report 0
docx
keyboard_arrow_up
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
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
Related Documents
Related Questions
A) List and describe 10 features of the Atmel ATmega 2560 AVR microcontroller (use the
ATmega 2560 complete reference manual for help).
B) List and describe two AVR instructions. As part of your description make sure that you list
the operation for each instruction that is provided in the instruction set summary.
arrow_forward
I need expert assistance in solving the choices,
providing evidence not through explanations
but through images or by illustrating with a
diagram of the EMU8086 processor.
-1. The Intel 8086 microprocessor can read/write 16 bit data from or to
a. I/O device
b. register
(C, memory
d. processor
2. Which unit in the 8086 microprocessor is responsible for pre-fetching instructions from
memory?
a. EU
b. ALU
c. BIU
3. The memory of 1M byte size could be divided into
a. twenty-one
b. thirty-four
d. CU
Kbyte segments.
d. sixty-four
c. thirty-three
4. Which of the following programming statements is NOT a valid comparison operator in
Arduino?
!= (not equal to) b. < (less than) c. and (logical AND) d. = (equal to)
5. How many A/D converter inputs pins does port-E in the PIC16F877A?
b. 6-Pins
c. 4-Pins
a. 3-Pins
6. How much the size of the program memory space in the
b. 16Kx16 bits c. 8Kx14 bits
a. 32Kx8 bits
8-Pins
PIC16F877A microcontroller?
d. 4Kx14 bits
arrow_forward
List and describe two AVR instructions. As part of your description make sure that you
list the operation for each instruction that is provided in the instruction set summary.
arrow_forward
Please may you give the solution to this computer science question!
Thank you
arrow_forward
Draw a 14 ic chip wiring diagram with labeled switches(A, B, C) of a 3 input of this logic diagram.
arrow_forward
Q2. (a) Figure 2 shows the pinout diagram (and their functional description) of the
2114 Static RAM memory IC. Using a neat sketch show how such IC may be
interfaced with an M68000 microprocessor to realise a system that needs
1K x 16 bits of RAM.
[Note: 2114 is a 4-bit memory IC. You will need multiple ICs to make up the
16-bit address bus of M68000 processor.]
Ao-Ag
Pin Names
Address Inputs
A6 1
A5 2
A4
AO 5
A16
A2 7
CS 8
GND 9
-23456782
18 Vcc
WE
Write Enable
17 A7
CS
Chip Select
16 A8
1/0₁-1/04
Data Input/Output
A3 4
15 A9
VCC
Power (+5V)
GND
Ground
14 I/O 1
13 I/O 2
Truth Table
12 1/03
CS
WE
Comments
11 I/O 4
H
X
Chip Deselected
L
L
Write
10 WE
L
H
Read
Figure 2
(b) Design an address decoder circuit to realise the following memory map
(shown below in hexadecimal notation). The unused address range should
generate an active low signal to be connected to the BERR* input of the
M68000 microprocessor. Use the partial address decoding technique for your
design.
ROM1 00 0000 03 FFFF…
arrow_forward
Q2. (a) Figure 2 shows the pinout diagram (and their functional description) of the
2114 Static RAM memory IC. Using a neat sketch show how such IC may be
interfaced with an M68000 microprocessor to realise a system that needs
1K x 16 bits of RAM.
[Note: 2114 is a 4-bit memory IC. You will need multiple ICs to make up the
16-bit address bus of M68000 processor.]
Ao-Ag
Pin Names
Address Inputs
A6 1
A5 2
A4 3
A3 4
AO 5
A1 6
A2 7
CS 8
GND 9
+23456700
18 Vcc
WE
Write Enable
17 A7
CS
Chip Select
16 A8
1/01-1/04
Data Input/Output
15 A9
Vcc
Power (+5V)
GND
Ground
14 I/O 1
13 I/O 2
Truth Table
12 1/03
CS
WE
Comments
11 1/04
Н
Chip Deselected
L
L
Write
10 WE
L
H
Read
Figure 2
(b) Design an address decoder circuit to realise the following memory map
(shown below in hexadecimal notation). The unused address range should
generate an active low signal to be connected to the BERR* input of the
M68000 microprocessor. Use the partial address decoding technique for your
design.
ROM1 00 0000 03 FFFF…
arrow_forward
1. Moore's Law: 1) What is Moore's Law about? 2) Why we have been used Moore's law to predict
computer performance before multicore? 3) What limits the performance scaling based on Moore's
law
arrow_forward
I need the answer as soon as possible
arrow_forward
Y=f(A,B,C)=(0,4,5)+don't care(2)
arrow_forward
What is a TTL circuit? What are their main characteristics? (Input voltage and current, output voltage and current, Vcc, …)
arrow_forward
(a) Consider the flipflop circuits below:
(i) Name the 2 circuits given in the figure. Explain how they are different from each
other.
a.
b.
(ii) Choose from the list the input that triggers data to travel to the next flipflop in a
counter.
A: Input at top NAND gate
B: Input at bottom NAND gate
C: Clock input clk
Q
arrow_forward
Write a Verilog code with testbench for 16-bit up/down counter with synchronous reset and synchronous up/down.If up/down is set the counter is up counter and if it is not set, the counter is a down counter.
submit the module code, testbench code, and the simulation results. PLEASE EXECUTE CODE IN VERILOG
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- A) List and describe 10 features of the Atmel ATmega 2560 AVR microcontroller (use the ATmega 2560 complete reference manual for help). B) List and describe two AVR instructions. As part of your description make sure that you list the operation for each instruction that is provided in the instruction set summary.arrow_forwardI need expert assistance in solving the choices, providing evidence not through explanations but through images or by illustrating with a diagram of the EMU8086 processor. -1. The Intel 8086 microprocessor can read/write 16 bit data from or to a. I/O device b. register (C, memory d. processor 2. Which unit in the 8086 microprocessor is responsible for pre-fetching instructions from memory? a. EU b. ALU c. BIU 3. The memory of 1M byte size could be divided into a. twenty-one b. thirty-four d. CU Kbyte segments. d. sixty-four c. thirty-three 4. Which of the following programming statements is NOT a valid comparison operator in Arduino? != (not equal to) b. < (less than) c. and (logical AND) d. = (equal to) 5. How many A/D converter inputs pins does port-E in the PIC16F877A? b. 6-Pins c. 4-Pins a. 3-Pins 6. How much the size of the program memory space in the b. 16Kx16 bits c. 8Kx14 bits a. 32Kx8 bits 8-Pins PIC16F877A microcontroller? d. 4Kx14 bitsarrow_forwardList and describe two AVR instructions. As part of your description make sure that you list the operation for each instruction that is provided in the instruction set summary.arrow_forward
- Please may you give the solution to this computer science question! Thank youarrow_forwardDraw a 14 ic chip wiring diagram with labeled switches(A, B, C) of a 3 input of this logic diagram.arrow_forwardQ2. (a) Figure 2 shows the pinout diagram (and their functional description) of the 2114 Static RAM memory IC. Using a neat sketch show how such IC may be interfaced with an M68000 microprocessor to realise a system that needs 1K x 16 bits of RAM. [Note: 2114 is a 4-bit memory IC. You will need multiple ICs to make up the 16-bit address bus of M68000 processor.] Ao-Ag Pin Names Address Inputs A6 1 A5 2 A4 AO 5 A16 A2 7 CS 8 GND 9 -23456782 18 Vcc WE Write Enable 17 A7 CS Chip Select 16 A8 1/0₁-1/04 Data Input/Output A3 4 15 A9 VCC Power (+5V) GND Ground 14 I/O 1 13 I/O 2 Truth Table 12 1/03 CS WE Comments 11 I/O 4 H X Chip Deselected L L Write 10 WE L H Read Figure 2 (b) Design an address decoder circuit to realise the following memory map (shown below in hexadecimal notation). The unused address range should generate an active low signal to be connected to the BERR* input of the M68000 microprocessor. Use the partial address decoding technique for your design. ROM1 00 0000 03 FFFF…arrow_forward
- Q2. (a) Figure 2 shows the pinout diagram (and their functional description) of the 2114 Static RAM memory IC. Using a neat sketch show how such IC may be interfaced with an M68000 microprocessor to realise a system that needs 1K x 16 bits of RAM. [Note: 2114 is a 4-bit memory IC. You will need multiple ICs to make up the 16-bit address bus of M68000 processor.] Ao-Ag Pin Names Address Inputs A6 1 A5 2 A4 3 A3 4 AO 5 A1 6 A2 7 CS 8 GND 9 +23456700 18 Vcc WE Write Enable 17 A7 CS Chip Select 16 A8 1/01-1/04 Data Input/Output 15 A9 Vcc Power (+5V) GND Ground 14 I/O 1 13 I/O 2 Truth Table 12 1/03 CS WE Comments 11 1/04 Н Chip Deselected L L Write 10 WE L H Read Figure 2 (b) Design an address decoder circuit to realise the following memory map (shown below in hexadecimal notation). The unused address range should generate an active low signal to be connected to the BERR* input of the M68000 microprocessor. Use the partial address decoding technique for your design. ROM1 00 0000 03 FFFF…arrow_forward1. Moore's Law: 1) What is Moore's Law about? 2) Why we have been used Moore's law to predict computer performance before multicore? 3) What limits the performance scaling based on Moore's lawarrow_forwardI need the answer as soon as possiblearrow_forward
- Y=f(A,B,C)=(0,4,5)+don't care(2)arrow_forwardWhat is a TTL circuit? What are their main characteristics? (Input voltage and current, output voltage and current, Vcc, …)arrow_forward(a) Consider the flipflop circuits below: (i) Name the 2 circuits given in the figure. Explain how they are different from each other. a. b. (ii) Choose from the list the input that triggers data to travel to the next flipflop in a counter. A: Input at top NAND gate B: Input at bottom NAND gate C: Clock input clk Qarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you