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.

Frequency devider verilog code (50mhz to 75 micro second)

Status
Not open for further replies.

no0ona

Newbie level 3
Newbie level 3
Joined
Oct 22, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
Hi,

I have a divider have an input of 50mhz and the output is 75micro second. How I write the code for this divider in a Verilog?
 

Attachments

  • Picture2.gif
    Picture2.gif
    5.6 KB · Views: 131

He didn't ask a question. He gave you some information. 75 us is 3750 clock periods at 50 MHz (I'm assuming it isn't 50 milliHertz as the diagram indicates).

So design a counter in Verilog that counts to 3750. When it gets there, it outputs a pulse, resets to zero and counts again. That will give you your 75us timing marker.

r.b.
 

oh Thanks. But in my diagram the input is 50miliHerts and the output is 75micro second, so I think in the beginning I should change the frequency to time so it will be 20second.

And my question is how I can write the code in Verilog for the same diagram??
 

Firstly, you are going to have to decide what the actual design problem is. I think it is more likely that there is a typo on your diagram (i.e. should be 50 MHz rather than 50 mhz). 50 mHz and 75 us makes no sense, nor does 50 mHz and 20 seconds.

Secondly, I did explain how you can write Verilog code for this. This is a very simple Verilog exercise, and you should be able to find several examples in books, tutorials and on the internet. Take a shot at writing it and then ask specific questions if you get stuck.


r.b.
 
50 milliHz makes no sense at first sight. In any case you should sketch a timing diagram how input and output signals are related.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top