Thanks! I use the circuit posted by Bob Perlman to construct a FSM just now and the performance of timing verification via QuartusII seems to be good. I think this may be a solution, but I whether I made the best choice to construct the module. Requirement:
*the work freq is 640Khz
*the expected datarate is 640K, 320K, 160K
*since this chip will be passive (without battery), power consumption is very important
*when datarate is 640K, either higher freq (at the cost of higher power consumption) or det(at the cost of larger area) have to be introduced; while datarate is lower than 640K, neither is needed. Then, I have three ways to choose from:
*a whole module using det-FSM advantage: only one Fsm disadvantage: extra control part, to decide whether negedge of clk is active
*a module consisting of a det-FSM part and a set-FSM (single-edge-trigged FSM) part advantage: easy to realize disadvantage: two groups of state registers
*a module using higher freq, esp. 1.28Mhz advantage: small area disadvantage: higher power consumption I am now making a module consisting of a det and a set FSM, but I am not sure whether I am making the best choice. Every advice would be highly appreciated. Best Regards, Yuqing Youth