Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

fuction call within state machine.execution time of function

Status
Not open for further replies.

chaitu2k

Member level 3
Joined
Apr 27, 2004
Messages
55
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
501
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
 

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
;)
 

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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top