Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Traffic light verilog and modelsim 1. The green light maintains 1024 cycles. (Starting state) 2. There is no light signal to maintain 128 cycles. 3.

Traffic light

verilog and modelsim

image text in transcribed

1. The green light maintains 1024 cycles. (Starting state) 2. There is no light signal to maintain 128 cycles. 3. The green light maintains 128 cycles. 4. There is no light signal to maintain 128 cycles. 5. The green light maintains 128 cycles. 6. Switch to yellow light to maintain 512 cycles. 7. Switch to red light to maintain 1024 cycles Input signal: (The circuit is triggered by clock positive edge pass: 1bit signal. When pass is 1, if the current state is not the green light of the initial state, it is forced to switch to the first cycle of the green light of the initial state. If it is the green light of the initial state, the light and cycle will not be changed. When pass is 0, there is no action. rst: 1bit signal, triggered when non-synchronous positive edge, set the light status to the first cycle of the green light. clk: 1bit clock signal. Output signal: R: 1bit signal, representing the output signal of the red light. G: 1bit signal, representing the output signal of the green light. Y: 1bit signal, representing the output signal of the yellow light. 1. Complete the design of traffic_light.v. 2. Using the steps in modelsim teaching, put traffic_light.v and traffic_light_tb.v into modelsim project to perform simulation

Green (1024 cycles) None (128 cycles) Green (128 cycles) Red (1024 cycles) 1 None (128 cycles) Yellow (512 cycles) Green (128 cycles) Figure 2. pass R rst traffic_light clk Figure 3. Green (1024 cycles) None (128 cycles) Green (128 cycles) Red (1024 cycles) 1 None (128 cycles) Yellow (512 cycles) Green (128 cycles) Figure 2. pass R rst traffic_light clk Figure 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

Explain the chemical properties of acids with examples.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago