Lab report 3 Elec 2607
.docx
keyboard_arrow_up
School
Carleton University *
*We aren’t endorsed by this school
Course
2607
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
docx
Pages
14
Uploaded by AmbassadorDragonfly364
Lab 3 ELEC2607
Jeff Hansen
101197428
Lab Section: L3 (8:30 - 11:30AM)
1.0 Introduction
The focus of this laboratory was to mimic the T-bird tail-light control design using a complex programmable logic device (CPLD). The completed circuit’s function was to output different types of combinations for the T-bird tail-lights, with different input signals providing different output combinations. The circuit was made from a left, right and brake signal functions,
with the three functions acting as switches to generate 8 possible output patterns which will be discussed in further sections. The possible states for the right tail-light was 000 -> 100 -> 110 -> 111, the possible states for the left tail light were 000 -> 001 -> 011 -> 111, for a total of 8 possible output patterns. An application to this specific would only work for the tail lights of cars, outside of that the 3 circuits that make up this design are quite useful in a lot of applications, like timers, handheld devices, GPU’s for computers etc. The design was made using the Xilinx software and tested in the ModelSim program. For the testing portion of this lab,
a completed circuit with the 3 components was needed, it was then passed into ModelSim which showed the student waveforms which could be interpreted to see if the circuit was made correctly. The rest of this report will contain the specifications and requirements of the circuit, the process and design, testing and implementation and lastly the conclusion.
2.0 Specifications
The main components of the T-bird counter that were designed in this lab were the left control box, the right control box and a counter, the three were then connected together to make the functional circuit. For both the control boxes there were 4 inputs: left (L), right (R), Brake (B), and Reset (R). Then the outputs were 3 lights: LITE_1, LITE_2, LITE_3. Both of the control boxes were quite similar, except for one having one of the inputs inverted. The counter circuit consisted of three inputs: clock (CLK), reset (RST) and signal storing memory (D). The inputs were then sent to 4 outputs LITE_1, LITE_2, LITE_3 and Emerg. The counter itself was made out of a D-flip-flop which was created in the prelab question 1, and it had a reset input, which automatically made Q equal to zero, allowing the user to store the inputs as memory. Since the circuit was made in Xilinx there were almost no limitations to the gate types or amount
of gates that could be used. There is no power or time limit, the circuit is quite small so supplying sufficient power is not difficult, there is also no time limit however, if the switches are
not pressed the circuit will not activate.
3.0 Design
3.1 Divide by two circuit
The first component which needed to be built was the divide by two circuit, the divide by two circuit is a d-flip-flop. The input Clock signal was passed through this circuit and was divided by
2, to output the frequency over every 2nd rising clock edge. The following figure shows both the divide by two and the d flip-flop circuits.
Figure 1 showing the divide by two circuit made in pre-lab question 1.
3.2 Counter circuit
The next circuit that was needed to be built was the counter circuit, the counter circuit has 2 inputs clock and reset, which are sent into the d flip-flop indicated as D on the circuit which inverts the outputs and sends it back through again. The counter circuit has 4 outputs: LITE_1, LITE_2, LITE_3 and Emerg, these outputs are activated by taking the Q0 output which was previously inverted, and everytime the signal is passed through the d-flip-flop the outputs change, resulting in different tail-lights being activated. The next figure demonstrates the completed counter circuit which was completed during the lab.
Figure 2 showing the completed counter circuit created in the lab.
The circuit was derived from the equations obtained from the truth table during the pre-lab; the following figure shows the completed truth table.
Figure 3 showing the completed truth table created in the pre-lab using table 1.
After completing the truth table the equations for the circuit were derived and were used to build the completed circuit, the following figure 4 shows the equations obtained.
Figure 4 showing the equations derived from the truth table made in the pre-lab.
3.3 Left control box
The next part of the circuit was to build the left and right control boxes. The left control box was made by deriving equations from a truth table. The left control box takes 4 inputs which are Left turn (L), Right turn (R), Brake (B) and Emergency lights (Emerg). Then outputs them in different combinations producing the outputs 000 -> 001 -> 011 -> 111. The following is a truth table from which the equations were derived.
Figure 5 showing the truth table for the left side The equations obtained from the truth table are shown down below in figure 6
Figure 6 showing the equations derived from the truth table
After these equations were obtained they had to be simplified in order for the circuit not to consist of too many logic gates. To do this a karnaugh map was used to simplify the equations, the next figure 7 shows the karnaugh map and the simplified equations obtained.
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 Questions
1-Write microprocessor program using mnemonics to add two numbers 08 and 06.
2-Write the object code of the program.
3-Perform the program using STEP function.
4-Execute the program and write the results.
Object code
Mnemonics
MOV AX
A1
B0
MOV AL
B3
MOV BL
04
ADD AL
F4
HLT
arrow_forward
LOGIC CIRCUITS AND DESIGN
arrow_forward
i need the answer quickly
arrow_forward
(Digital Electronics-CLC)
Provide two examples of arithmetic circuits used in digital systems and explain comprehensively the operation of each circuit
arrow_forward
please answer ASAP
Subject: MICROPROCESSOR
arrow_forward
What is the main difference between combinational and sequential logic
circuits.
arrow_forward
clear answer or dislike
arrow_forward
ii) For the circuit shown in Figure B9,
a. Find logic functions for Y and Z.
b. Simplify function Z using Boolean algebra.
Y
Figure B9
AB
arrow_forward
H.W: Reduce the combinational logic circuit in Figure below to a
minimum form.
arrow_forward
Construct a timing diagram with all the possible inputs and output for the logiccircuit shown in Figure Q2(d).
arrow_forward
i need the answer quickly
arrow_forward
What are the two main types of output circuits in TTL?
arrow_forward
I need the answer as soon as possible
arrow_forward
As a general rule, for programmable logic controllers, coils can be connected in a series.
True or Flase
arrow_forward
2. Consider the following circuit
D
å lå
a. Find the expressions for D, T, Qo*, Q₁*.
b. Write the transition output table.
c. Draw the state diagram of the circuit.
d.
Is this a Mealy or Moore machine? Explain.
T
21
a la
1
arrow_forward
Which of the following are part of the Arduino microcomputer.
The answer could be more than one
arrow_forward
Y=f(A,B,C)=(0,4,5)+don't care(2)
arrow_forward
Please show work included
6. Assume a digital to analog conversion system uses a 7-bit integer to represent an analog temperature over a range of -27oF to 100oF. If the actual temperature being read was 40oF, what would be the closest possible value that the system could represent? Write the answer in a 7-bit binary number as well as in decimal. The answer should be in the following form 00010001 and -10oF a set of two numbers.
arrow_forward
Q2/A) Design 8x1 multiplexer using 2x1 multiplexer?
Q2 B)Simplify the Logic circuit shown below using K-map then draw the
Simplified circuit?
Q2/C) design logic block diagram for adding 12 to 5 using full adder showing
the input for each adder?
arrow_forward
(c)
Figure Q3(c)(i) shows a register and Figure Q3(c)(ii) shows the input waveforms
(CLOCK and Data in) to the circuit.
A1
A9
A10
A2
Function generator
A3
A11
A12
AS
A13
A6
A14
A7
A15
Data in
Bop.7)
ip.r
82p.7)
Logic analyser
U1
U2
U3
U4
UO
6.
1.
6
1
6
INVERTER
3
CLK
3 CLK
oCLK
CLK
5
K
K
5
K
K
4027
Clock
Function generator
Figure Q3(c)(i)
(i)
Determine the type of register as shown in Figure Q3(c)(i).
arrow_forward
Select a suitable example for for
combinational logic circuit.
O a. None of the given choices
O b. De-multiplexer
O c. PLA
O d. Latches
arrow_forward
The numbers from 0-9 and a no characters
is the Basic 1 digit seven segment display
* .can show
False
True
In a (CA) method of 7 segments, the
anodes of all the LED segments are
* "connected to the logic "O
False
True
Some times may run out of pins on your
Arduino board and need to not extend it
* .with shift registers
True
False
arrow_forward
(b) Figure Q2(b) shows input waveforms of A, B and C. Draw the logic circuit that will
generate the output waveform X.
A
Inputs
B
Output
X
Figure Q2(b) : Input and output waveforms
arrow_forward
For the input waveforms in Figure , what logic circuit will generate the output
waveform shown? Explain in detail for each.
Inputs B
Output X
Inputs B
Output X
arrow_forward
Diode Logic Circuit
A burglar alarm rings if the door switch or the window switch is
activated. However, a key operated switch silences the alarm.
1. Write the equation that satisfies the condition.
2. Design the equivalent logic circuit using diodes that best
describe the condition stated.
arrow_forward
Explain what is pulse logic system?
arrow_forward
What are the two primary categories of output circuits in TTL?
arrow_forward
If a MOSFET is to be used in the making of logic gates application then it must work ina. Saturationb. Triodec. Edge of saturationd. None of the answers
arrow_forward
Parts A ,B , and C.
How is -89 represented using 8-bit two's compliment? (The answer should be 8 binary digits)
Assume we are using the simple model for floating-point representation as given in the text (the representation uses a 14-bit format, 5 bits for the
exponent with a bias of 15, a normalized mantissa of 8 bits, and a single sign bit for the number):
Show how the computer would represent the numbers 100.0 using this floating-point format. Express the answer in hexadecimal using 4 hex digits.
Suppose we are working with an error-correcting code that will allow all single-bit errors to be corrected for memory words of length 7. We have
already calculated that we need 4 check bits, and the length of all code words will be 11. Code words are created according to the Hamming algorithm
presented in the text. We now receive the following code word:
01111010101
Assuming even parity, according to our error-correcting code, in what bit is the error?
Number the bits from the right…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Related Questions
- 1-Write microprocessor program using mnemonics to add two numbers 08 and 06. 2-Write the object code of the program. 3-Perform the program using STEP function. 4-Execute the program and write the results. Object code Mnemonics MOV AX A1 B0 MOV AL B3 MOV BL 04 ADD AL F4 HLTarrow_forwardLOGIC CIRCUITS AND DESIGNarrow_forwardi need the answer quicklyarrow_forward
- (Digital Electronics-CLC) Provide two examples of arithmetic circuits used in digital systems and explain comprehensively the operation of each circuitarrow_forwardplease answer ASAP Subject: MICROPROCESSORarrow_forwardWhat is the main difference between combinational and sequential logic circuits.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Delmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage Learning
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning