(Viswan) wrote in message
>
> I am designing a hardware unit that can be used as an interface to a
> sensor and the FPGA on which my rest of the hardware exists. I have
> to generate some synchronizing clock signals at certain delays, to
> start the communication.
>
> for example 2 siignals are needed to be sent to sensor as follows.
> data is bidirectional.
>
> data <---> ----| |-------
> |----------|
> |-----| |----|
> sclk <---- --| |----| |-----
>
> I thought it would be better if I could generate it using delays..
> ANother idea I have in my mind is to use counters and generate these
> waveforms. But i doubt if there is any other good idea for this.
>
> Thanks a lot.
The best way to do this is to drive the data on the falling edge of
the clock so the the data is interpreted by the sensor on the rising
edge.
If the clock is too fast, then the best way is, like somebody already
said, to use a crystal or internal FPGA PLL. Then you would use (if
clock'falling_edge) expression.
If the clock is slow enough then it can be generated using logic with
the FPGA.
Take care,
- Paulo Valentim