Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > To generate a periodic time-gate

Reply
Thread Tools

To generate a periodic time-gate

 
 
vizziee@gmail.com
Guest
Posts: n/a
 
      11-21-2005
Hello,

I want to generate a signal which is periodically toggling for a
specified time of the order of, say 2 seconds i.e. it is like a clock
with 4 sec period.

What is available to me is a clock of 4MHz frequency.

I used the following approach, rather unsuccessfully: I used a counter
(a 20-bit counter rather ) to count the clock periods till it amounted
to 2 seconds. Using counter values I am toggling my output signal in a
concurrent statement. The counter should reset after 4 seconds but
since this counter doesn't count all the 20-bit values, it doesn't
reset automatically after 4 sec. So what can be the workaround? Can I
avoid a counter with 20-bits and do with a smaller one?

Sincerely,

 
Reply With Quote
 
 
 
 
jens
Guest
Posts: n/a
 
      11-21-2005
It sounds like you need a 23-bit counter... when 2s expires toggle your
output signal and reset the counter so it can count 2s again.

An LFSR is a small and fast counter that would be well-suited for this
application.

However, if you're using this for an internal signal, you're better off
using an enable signal instead of another clock signal (i.e. keep the
design synchronous).

 
Reply With Quote
 
 
 
 
OutputLogic OutputLogic is offline
Junior Member
Join Date: May 2009
Posts: 8
 
      05-22-2009
There is an online tool that generates a Verilog code for LFSR Counters of any value up to 31-bit wide. It's on "http OutputLogic dot com" [sorry, this site doesn't let me post a link in a regular way]
LFSR counters are much smaller than regular ones. Looks like that's what you need.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Periodic disconnects ZX4 Wireless Networking 1 01-28-2006 03:24 PM
Periodic breaks in connection between router and PCMCIA card steve2470 Wireless Networking 2 08-02-2005 01:10 AM
aaa accounting update periodic stopped working on 12.3.13 Yehavi Bourvine Cisco 1 03-13-2005 04:06 PM
sending an aspx report (or any web page) as an e-mail on periodic basis NoSf3RaTu ASP .Net 0 01-21-2004 03:25 PM
Newbie ?: Force a periodic postback?? Comcast ASP .Net 1 08-07-2003 07:13 AM



Advertisments