Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - tasks in differenet rising edges.

 
Thread Tools Search this Thread
Old 06-03-2007, 09:17 PM   #1
Default tasks in differenet rising edges.



Hello Group,

Would you please tell me how can I implement the following steps in
VDHL code?

1) At one rising edge of clock, check input1
2) On the next edge, assign a value a to output1
3) At the thrid rising edge, a consumer must get data[]

What I don't know is how can I do one task during 1st rising edge, 2nd
task during 2nd rising edge and a 3rd task during the thrid rising
edge of clock.

thanks
amit



Amit
  Reply With Quote
Old 06-04-2007, 12:14 AM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: tasks in differenet rising edges.
On Sun, 03 Jun 2007 13:17:42 -0700, Amit <> wrote:

>
>Hello Group,
>
>Would you please tell me how can I implement the following steps in
>VDHL code?
>
>1) At one rising edge of clock, check input1
>2) On the next edge, assign a value a to output1
>3) At the thrid rising edge, a consumer must get data[]
>
>What I don't know is how can I do one task during 1st rising edge, 2nd
>task during 2nd rising edge and a 3rd task during the thrid rising
>edge of clock.


STATE MACHINE.

At least, that's if you want to write VHDL that represents a piece
of hardware. It sounds like that's what you want to do.

Oh, and a non-meaningless specification would be good too.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Old 06-04-2007, 12:56 PM   #3
Ahmed Samieh
 
Posts: n/a
Default Re: tasks in differenet rising edges.
On Jun 3, 11:17 pm, Amit <amit.ko...@gmail.com> wrote:
> Hello Group,
>
> Would you please tell me how can I implement the following steps in
> VDHL code?
>
> 1) At one rising edge of clock, check input1
> 2) On the next edge, assign a value a to output1
> 3) At the thrid rising edge, a consumer must get data[]
>
> What I don't know is how can I do one task during 1st rising edge, 2nd
> task during 2nd rising edge and a 3rd task during the thrid rising
> edge of clock.
>
> thanks
> amit


use FSM,

S1 : read input, set S2
S2 : assing a to output, set S3
S3 : blablabla (anything), set S1

Ahmed Samieh



Ahmed Samieh
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in scheduling tasks santu_srisoft General Help Related Topics 1 06-22-2009 01:57 AM
New releases: Hannibal Rising, Can't Hurry Love & Pan's Labyrinth: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 03-20-2007 04:55 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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