Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > pulse streatcher

Reply
Thread Tools

pulse streatcher

 
 
Praveen
Guest
Posts: n/a
 
      05-06-2005
Hi,

Could someone suggest me a circuit to get the below ouput from the
input?

__________________________________
| |
____| |______________________ Input


_____
| |
____| |______________________ Output


Thanks.

 
Reply With Quote
 
 
 
 
mk
Guest
Posts: n/a
 
      05-07-2005
On 6 May 2005 14:26:11 -0700, "Praveen" <> wrote:

>Hi,
>
>Could someone suggest me a circuit to get the below ouput from the
>input?
>
> __________________________________
> | |
>____| |______________________ Input
>
>
> _____
> | |
>____| |______________________ Output
>
>
>Thanks.


module pulse(..., in, out);
....
input in;
output out;

wire indlyd = DELAY(in);
wire out = !indlyd & in;
endmodule

now of course the interesting part inside DELAY and the missing ports.
One very crude way is to instantiate some delays between in and
indlyd. Or declare indyd as register and clock in through some number
of cycles. This depends on whether you have a clock to which in is
synchronous or how wide you want the pulse to be etc.

 
Reply With Quote
 
 
 
 
Ralf Hildebrandt
Guest
Posts: n/a
 
      05-07-2005
Praveen wrote:

> Could someone suggest me a circuit to get the below ouput from the
> input?
>
> __________________________________
> | |
> ____| |______________________ Input
>
>
> _____
> | |
> ____| |______________________ Output
>


_ _ _
| | | | | ...
____| |_| |_| clock


Sample Input with the rising_edge of clock. If Input is high, set output
high. With the next rising_edge of clock, if output is high, set it low
/and/ store the information, that Input was already high. Do not set
Output high, if the stored information says, that Input was already
high. Reset this information with the rising_edge of clock, if Input is low.
Hint: In the 2nd. sentence is an "error", because I did not want to
mention the stored information so early there.

Note: The rising_edge of Output will have a delay respective to Input.

Finally: This is a "pulse compressor", not a "pulse stretcher"

Ralf
 
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
VHDL PULSE COUNTER - PLS HELP crazy_kuts VHDL 1 03-30-2006 06:50 PM
GTK progress bar not working properly with pulse() lamthierry@gmail.com Python 0 05-09-2005 09:21 PM
Generating a output signal with a specific pulse width arturomeza@gmail.com VHDL 3 12-21-2004 07:33 PM
race conditions/pulse width The Weiss Family VHDL 6 10-19-2004 02:47 PM
Send a PULSE on input change, asynchronous Jamie VHDL 4 10-22-2003 06:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57