Using async signal

Guest #2405053
Hi, i'm new to VHDL, i have this problem:

i've an async signal, called REQUEST, and into my process, if the 
counter arrives to 5 and if the REQUEST signal went 1 in the previous 
period of clock, i must do something. my problem is that REQUEST is 
asynchronous, and its period should be less long than clock's period, so 
i can't check it every positive edge of clock with the usual clock'event 
and clock='1'….

how can i solve this problem? thanks!
Moderator (Company: Titel) #2405182
> and if the REQUEST signal went 1 in the previous
> period of clock, i must do something.
Lets say these are your signals:  (X=signal change)
CLK   .-------.         ,-------.         ,-------.         ,-------.
     ´         `-------´         `-------´         `-------´
CNT    X     3           X     4           X      5          X
REQUEST   when does it get active?   ^here     ^or here

> and its period should be less long than clock's period, so i can't
> check it every positive edge of clock with the usual clock'event
> and clock='1'….
You can store a pulse in a signal shorter than your clock cycle in a way 
like this:
http://www.lothar-miller.de/s9y/archives/19-Kurzer-Spike-in-Puls-umgewandelt.html
But even a trick like this doesn't help you with your problem of clock 
donaim crossing. As you describe it, I see no chance to react reliable 
in less than one clock cycle...
Guest #2405241
i don't know when request go 1, it's the problem…

i think also that the link contains the solution for my problem, thanks!
Guest #2414961
Hallo,

check the signal with a much faster clock and store it with an flip 
flop. Is that no option?

Or use the request signal in the following way "request'event" and set a 
flag.

Sim

Reply

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.