Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me with writing a code in Verilog

Status
Not open for further replies.

supamaka

Newbie level 4
Joined
Jan 30, 2006
Messages
6
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,337
VERILOG problem

Hello everyone,
Does anyone know how to do this problem? I have to do it in VERILOG.

Design a windshield wiper with the following operation:
- a user can control the wiper on three positions
- position1: the wiper is off
- position2: the wiper wipes every twenty time units
- position3: the wiper wipes every other time unit


submit the design and stimulus code, and not more than three pages of results (waveforms or other).

Please help me in getting the solution. I am unable to do it.
Thanks,
Sai.
 

Re: VERILOG problem

Sounds like easy homework to me. You may want to review your course reading material.

You will want a module that has position[1:0] as the input and wipe as the output. You will also want to have a clock as an input to use as your "time unit"

Position 1: Hopefully you can figure that one out :)

Position 2: Can you count to 20, then wipe?

Position 3: Wipe every other clock

For your stimulus generate clock cycles, set the postion, get the output, set the next position, etc.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top