Re: Synthesisable Timer in VHDL
- From: "KJ" <kkjennings@xxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 16:17:47 GMT
"move" <liubenyuan@xxxxxxxxx> wrote in message
news:ce01257f-651a-4792-aa92-6238b902e219@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi all:
i am currently working on a "toy" design of my first big project (in
VHDL) on the Xilinx Spartan III starter kit. now facing a timer
problem and i could not properlly solve it using my limited design
experience, here is it:
module A will prepare data for output (node : dout(7 downto 0)) to
module B when it receive a READY signal from B. in order to notify B
that the data is ready on the bus , A will ouput a signal DONE , but
the DONE will be '1' after 30 ms A received signal READY and will just
last 10 ms before going low. I wonder is there any standard or elegant
way of implement the timer in VHDL?
PLZ give me some hint!
thank U all in advance ! :)
1. Create constants of type time (or pass in as generics of type time) the
clock period of your clock and the time period for your delays.
2. Based on the value of those constants/generics compute the number of
clocks that you would need to count (i.e. Max_count := Delay_Time /
Clock_Period)
3. Declare an integer signal in the range from 0 to Max_Count -1
4. Create the code for a counter that counts from 0 to Max_Count - 1. When
you get up to Max_Count - 1 your requested time interval has occurred so do
whatever it is you want to do at that time.
Kevin Jennings
.
- References:
- Synthesisable Timer in VHDL
- From: move
- Synthesisable Timer in VHDL
- Prev by Date: Re: ISE 10.1 - Initial experience
- Next by Date: Re: ISE 10.1 - Initial experience
- Previous by thread: Synthesisable Timer in VHDL
- Next by thread: System Generator Error
- Index(es):
Relevant Pages
|