Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Re: problem in different clock speed when reading and writing from ram

Reply
Thread Tools

Re: problem in different clock speed when reading and writing from ram

 
 
Pieter Hulshoff
Guest
Posts: n/a
 
      08-13-2003
Hello Sarah,

> So, i need to keep the signal : start_tx longer until the rising endge of
> Uart_clcok.
> Does anyboday know how to slove this problem? Which logic should be
> used?


It's a 3 step approach:

1. Stretch the start_tx signal such that it is longer than the clock pulse
of the UART clock including clock skew. A simple counter to turn the
start_tx signal on and off should do the trick. It's no problem if the
start_tx pulse is a bit longer than it needs to be. Too short however will
cause problems.
2. Clock the start_tx to the UART clock using 3 FFs to avoid meta-stability.
3. Perform a positive edge detection on the output of the 2nd and 3rd FF
using the UART clock.


For step 2 and 3:

PROCESS
BEGIN
WAIT UNTIL uart_clk = '1';
uart_start_tx <= start_tx; -- 1st FF
uart_start_tx_1d <= uart_start_tx; -- 2nd FF
uart_start_tx_2d <= uart_start_tx_1d; -- 3rd FF
-- rising edge detection
IF uart_start_tx_1d = '1' AND uart_start_tx_2d = '0' THEN
-- start your transmission here
END IF;
END PROCESS;


Hope this helps,

Pieter Hulshoff

 
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
KV8 Pro - RAM Clock speed and CAS Latency tezza Computer Support 4 08-07-2007 12:35 PM
Single clock pulse transfer to different clock domains. himassk VHDL 1 05-16-2007 10:41 AM
speed of reading the real time clock? bugbear Java 7 05-21-2006 07:53 PM
speed speed speed a.metselaar Computer Support 14 12-30-2003 03:34 AM
Re: problem in different clock speed when reading and writing from ram Chris Pruett VHDL 0 08-14-2003 06:14 AM



Advertisments