Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Pre and clr jk flip flop

27/10/2021 Client: muhammad11 Deadline: 2 Day

Digital Circuits & Systems I Lab

I. OBJECTIVES
1. To simulate the operation of a circuit used to create an edge-triggered D flip-flop.

2. To test the operation of a 74LS74 D flip-flop and compare the operation with the predicted behavior.

3. To describe and simulate the operation of edge-triggered D-type and J-K flip-flops using VHDL.

4. To test the operation of a 74LS112 J-K flip-flop and compare the operation with the predicted behavior.

II. PARTS LIST
Equipment: IBM PC or Compatible with Windows 2000 or Higher
Quartus II Design Software—Version 9.1

Frequency Generator

Oscilloscope

Parts:

1—Red LED 1 – Green LED 1—74LS112 dual J-K flip-flop 1—1.0 kΩ resistor, ¼ W 2—330 Ω resistors, ¼ W 1—SPDT Switch, DIP configuration

III. INTRODUCTION
Edge-triggered devices react only on a signal transition, either low-to-high (rising edge) or high-to-low (falling edge). This allows for the development of logic circuits in which the action of the components only occurs at a specified point in time. These circuits generally use a common signal, called a clock, as the trigger. These circuits are called synchronous.

Flip-flops can have two different types of inputs. Inputs that are used on clock transitions are called synchronous inputs; inputs that cause a change in the output independent of the clock are called asynchronous.

Synchronous inputs must be stable for some time before a clock transition to ensure the flip-flop will properly react. If the synchronous input changes too close to the clock transition, the flip-flop may miss or misinterpret the input. The time required for the input to precede the clock transition is called the set-up time.

Many of the VHDL features required for the description of sequential (clocked) circuits are covered in the Lecture Notes. The use of the PROCESS function allows for the step-by-step evaluation of a circuit and the ability to model clocked designs. The function needed to model the action of clocked circuits is called EVENT. The EVENT function can be combined with other operators to create an attribute. By combining an apostrophe with EVENT, the attribute ’EVENT is created. The ’EVENT attribute can be added to a signal to create a condition to detect a clock transition.

The ‘EVENT attribute can only be used within a process. The command clock’EVENT indicates, when true, that a transition has occurred on the input called clock. With the use of an IF operator, this can be used to indicate a clock edge. The statement IF (clock’EVENT AND clock = ‘1’) will be true only on the rising edge of the clock. A falling edge trigger would occur for the statement IF (clock ’EVENT AND clock = ‘0’).

As an example of a clocked circuit, consider the D flip-flop show in Figure 4.1 and the VHDL file in Figure 4.2.

D

CLK

Q

Q

Q

D

CLK

Figure 4.1—Clock D Flip-Flop
ENTITY dflipflop IS
PORT(

D :IN BIT;

clock :IN BIT;

Q :OUT BIT);

END dflipflop;

ARCHITECTURE behavior OF dflipflop is

BEGIN

PROCESS (clock) BEGIN IF (clock’EVENT AND clock = ‘1’) THEN Q <= D; END IF;

END PROCESS;

END behavior;

Figure 4.2 - VHDL Design File for D-Flip Flop

In this example, the statements within the IF portion are evaluated when there is a change in clock from a 0 to a 1 state. Until this change is detected the value of Q remains unchanged.

As another example of modeling, consider the 74LS74 D flip-flop, Figure 4.3, with the addition of an asynchronous clear and preset function. The code is given in Figure 4.4.

Figure 4.3—74LS74 D Flip-Flop
ENTITY dflipflop IS

PORT(

D, PRE, CLR :IN BIT;

CLOCK :IN BIT;

Q,QN :BUFFER BIT);

END dflipflop;

ARCHITECTURE behavior OF dflipflop is

BEGIN

PROCESS (CLOCK, CLR, PRE) BEGIN IF CLR = ‘0’ THEN

Q <= ‘0’; QN <= ‘1’;

ELSIF PRE = ‘0’ THEN

Q <= ‘1’; QN <= ‘0’;

ELSIF (clock’EVENT AND clock = ‘1’) THEN Q <= D; QN <= NOT D; END IF;

END PROCESS;

END behavior;

Figure 4.4 – VHDL File for the 74LS74 D Flip-Flop
IV. PROCEDURE
A. VHDL Entry and Simulation of the 74LS74 D Flip-Flop
1. Open Quartus II and create a new project named dflipflop.

2. Enter, compile, and save the file for the 74LS74 D flip-flop shown in Figure 4.4.

3. Open the Vector Waveform window with an end time of 1.0 s and grid size of 50 ns.

4. Create a simulation that sets up the following.

a. Set D for a period of 100 ns.

b. Set CLOCK for a period of 50 ns.

c. Set PRE = 1 for 0 to 450 ns and 600 ns to 1s.

d. Set CLR = 1 for 150 ns to 850 ns.

5. Run the simulator. Print out a hardcopy. Turn this in with your report.

B. VHDL Entry and Simulation of the 74LS112 J-K Flip-Flop
1. A schematic for the 74LS112 J-K flip-flop is shown in Figure 4.5 and a partial text file is in Figure 4.6. Complete this file, compile, and save the design as jkflipflop.

Figure 4.5—74LS112 J-K Flip-Flop

ENTITY jkflipflop IS

PORT(

J, K, PRE, CLR, CLOCK :IN BIT;

Q,QN :OUT BIT);

END jkflipflop;

ARCHITECTURE behavior OF jkflipflop is

BEGIN

PROCESS (CLOCK, CLR, PRE) BEGIN IF CLR = ‘0’ THEN

Q <= ‘0’; QN <= ‘1’;

ELSIF PRE = ‘0’ THEN

Q <= ‘1’; QN <= ‘0’;

ELSIF

¦ ¦

END IF;

END PROCESS;

END behavior;

Figure 4.6—Partial VHDL Description of 74LS112 J-K Flip-Flop
2. Print out a copy of the completed Design File and turn it in with your report.

3. Open the Waveform Vector window with the same end time and grid as before.

4. Create a simulation that sets up the following.

a. Set J for a period of 75nS.

b. Set K for a period of 125nS

c. Set CLOCK for a period of 50nS.

d. Set PRE = 1 for 0 to 450nS and 600nS to 1S.

e. Set CLR = 1 for 150nS to 850nS.

5. Run the simulation and print out a hardcopy. Turn this in with your report.

6. Using the simulation results, complete the truth table below.

PRE
CLR

J

K

CLOCK

Q

Q_NOT

1

0

0

1

1

1

0

0

1

1

0

1

1

1

1

0

1

1

1

1

74LS112 J-K Flip-Flop Truth Table
7. From the simulation result, determine the values for propagation times for the Q output from the active clock edge. Record these values below.

tPHL = ______________________ tPLH = ________________________

C. Test the 74LS112 J-K Flip-Flop

1. Build the J-K flip-flop circuit shown in Figure 4.7. Remember to attach VCC to pin 16 and ground to pin 8.

Figure 4.7—74LS112 J-K Flip-Flop Test Circuit
2. Using the circuit, verify that the operation follows the truth table from the simulation.

3. Increase the pulse generator output to 100 kHz. Set the switches so that all of the flip-flop inputs are high and remove the LEDs and resistors. Using the oscilloscope, measure the propagation times for the Q output from the active clock edge. Record the value below.

tPHL = ______________________ tPLH = ________________________

.

1

Course Number: ECET-230 Laboratory Number: 4 Page 3 of 7

D

CLK

Q

Q

PRE

CLR

J

CLK

K

Q

Q

PR

CL

SET

J

CLK

K

RESET

J

CLK

SET

J

CLK

K

RESET

K

Q

Q

PR

CL

D

CLK

Q

Q

PRE

CLR

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Custom Coursework Service
Financial Analyst
Top Rated Expert
Accounting & Finance Mentor
Essay Writing Help
Peter O.
Writer Writer Name Offer Chat
Custom Coursework Service

ONLINE

Custom Coursework Service

I am an elite class writer with more than 6 years of experience as an academic writer. I will provide you the 100 percent original and plagiarism-free content.

$42 Chat With Writer
Financial Analyst

ONLINE

Financial Analyst

After reading your project details, I feel myself as the best option for you to fulfill this project with 100 percent perfection.

$25 Chat With Writer
Top Rated Expert

ONLINE

Top Rated Expert

I am an academic and research writer with having an MBA degree in business and finance. I have written many business reports on several topics and am well aware of all academic referencing styles.

$15 Chat With Writer
Accounting & Finance Mentor

ONLINE

Accounting & Finance Mentor

I find your project quite stimulating and related to my profession. I can surely contribute you with your project.

$42 Chat With Writer
Essay Writing Help

ONLINE

Essay Writing Help

I have read your project description carefully and you will get plagiarism free writing according to your requirements. Thank You

$41 Chat With Writer
Peter O.

ONLINE

Peter O.

I am a professional and experienced writer and I have written research reports, proposals, essays, thesis and dissertations on a variety of topics.

$20 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Classify the following cash flows as either operating - How to write word equations - Write related facts lesson 6.8 answer key - Wave buoy gold coast - Squander - What is walt disney's corporate strategy - The person centered view of human nature - Journal entry to release restricted funds - Social essay 2 - 19/17 frazer street collaroy - Hei spark tester napa - American society of perianesthesia nurses aspan - How to make fake blood look more realistic - Sign language courses serc - Within an organization the trait approach can be applied to - Blue gold documentary - Uncovering Your Rhetorical Self - What is the difference between adjusting entries and correcting entries - Schedule of cost of goods sold template - What is unusual about the new surgeon doll worksheet - SCIENCE (No Plagairism, A++ Work, On Time) - History paper need by 10/15 - Solid mechanics assignment help - Advantages and disadvantages of etsy - Risk acceptance mitigation transference avoidance - Beth gelert poem summary - ENG 1100 MOD 1 Timeline / Rubic 1 2020 - Iframe cybersource hosted order page - Challenges mary mackillop faced - Nessus review 2016 - Extraction of caffeine from tea lab report discussion - Math and physic 2 - Special occasion speech outline - Technology, artificial intelligence, and robots - Bailey household platform step stool - Autonomous maintenance step 2 - Burj al arab documentary - Why are there so few absolutes in ob - Wuthering heights key quotes - Australian reinsurance pool corporation - Hilti firestop installer certification - Hardcore pawn big bet over melted gold - 10hrs coding website assignment due end of day - What you pawn i will redeem annotated bibliography - EDMS Business Requirements Documents - White laith primary school - Critical thinking exercise 3 - Image enhancement techniques ppt - SQL Database - Palliative care - Discussion essay - Week 7: summary of healthcare concern presentation - If a company’s beta were to double, would its expected return double? - Tucker turtle lesson plans - Villa mella restaurant elizabeth nj - Petroleum ether and acetone chromatography - Cell specialisation vs differentiation - BUS475 - Harold davinier south africa - Which of the following is a source of cash - Http www padowan dk graph - Braeden tends to eat whenever he feels bored. his boredom is an example of a(n) - St george's student union - Hobby circuits using led - Grid organizational development ppt - Cases in healthcare management pdf - Allusion in the gift of the magi - Physiology essay - Armstrong grid touch up paint sds - Qualitative Validity - Stata bar graph frequency - Johnson and johnson public relations crisis management - 4th grade word study worksheets - When driving 55 mph how long to stop - From the perspective of the book of exodus, what was the lord's role in the events it portrays? - The odyssey robert fagles summary - Anoche nos sentimos alegres mis primos - Hotel on the corner of bitter and sweet cliff notes - Dan murphy launceston beer specials - Cardiac function curve and vascular function curve - Blanka dobrynin - Information systems plan template - CASE 3-TRANSFER PRICING AND RESPONSIBILITY CENTERS - Nr 224 fundamentals exam 1 chamberlain - Human Resources! - French indirect object pronouns - Wk 3 - College Communication Worksheet [due Mon] Wk 3 - College Communication Worksheet [due Mon] - Endothermic potential energy diagram - Harrison bergeron annotated text - Andy wilson boston duck tours - Describe the organizational structure of abco corporation - Ncea level 1 maths - Bony fish anatomy diagram - Literature review - Consider steady heat transfer between two large parallel plates - How to find internal growth rate - DISCUSSION #3 - Customer journey map template doc - Title of the organization - Scarce resources and social rewards are distributed on the basis of ascribed statuses in