electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

fuction call within state machine.execution time of function


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> fuction call within state machine.execution time of function
Author Message
chaitu2k



Joined: 27 Apr 2004
Posts: 58
Helped: 1


Post27 Jan 2005 15:58   

fuction call within state machine.execution time of function


when u call a function within a state in combinational state machine process block
such as

when s1:
return_value_orsome siganl<= fucntion();
some asssignments;
...
....some more statements
ns<=s2;

how many clock cycles does the fuction take to return a value.....and wht does the function execution time depend on....can anyone pls explain so send a short document
Back to top
Google
AdSense
Google Adsense




Post27 Jan 2005 15:58   

Ads




Back to top
r_e_m_y



Joined: 02 Oct 2003
Posts: 77
Helped: 1


Post27 Jan 2005 18:24   

Re: fuction call within state machine.execution time of func


Hi chaitu2k,

I don't think that you can use a synchronous function (that means it contains clocked process = Flip Flop) to affect a signal in an combinatorial process.
The function may only generate combinatorial.
If your signal "return_value_orsome siganl" is clocked somewhere else, the function shall return its value befor the clock edge.
Typically, the function shal work a your global clock frequency. (post synthesis timing report).

be careful if you use different functions to affect your signal "return_value_orsome siganl" in the other states : in synthesis, this will complexify the logic equations, and so you can obtain a very bad maximum frequency value...

I hope this will help you
Wink
Back to top
sarath51



Joined: 11 Dec 2002
Posts: 143
Helped: 7


Post27 Jan 2005 20:10   

Re: fuction call within state machine.execution time of func


Function should not have any timing delay etc, so it should get assigned in the same clock cycle
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> fuction call within state machine.execution time of function
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Can't call function within an ISR - why? C code (3)
matlab function execution time (1)
function of a state machine? (1)
explain finite state machine and Infinite state machine? (1)
difference b/n function call and interrupt call (6)
execution time (1)
time of execution of a program??? (6)
time of execution of a C program (3)
Measuring time of execution in routine (5)
Execution time calculation in C (not Cpp) (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS