alliance-users '2000
little question


Gonzalo Arana (gonzaloa@sinectis.com)
Sat, 16 Dec 2000 18:45:40 -0300

Hi. I got this message when trying to use syf (syf -a estados.fsm) fvhfbh2fsm.331 Number of state is zero in "estados" The source code of estados.fsm is: ENTITY Estados IS PORT (Clock: IN BIT; Out0: OUT BIT); END; architecture Estados_arch of Estados is -- SYMBOLIC ENCODED state machine: Sreg0 type Sreg0_type is (S1, S2); signal Sreg0: Sreg0_type; -- current state signal Sreg1: Sreg0_type; -- next state -- pragma CLOCK Clock; -- pragma CURRENT_STATE Sreg0; -- pragma NEXT_STATE Sreg1; begin -- concurrent signals assignments --diagram ACTIONS Transiciones: process (Sreg0) begin -- Set default values for registered outputs/signals and for variables Sreg1 <= S1; -- ... case Sreg0 is when S1 => Sreg1 <= S2; when S2 => Sreg1 <= S1; when others => null; end case; end process; -- purpose: Este es el que hace las transiciones entre los estados -- type : combinational -- inputs : Clock -- outputs: DoTransiciones: process (Clock) begin -- process DoTransiciones if clock = '0' and not Clock'stable then Sreg0 <= Sreg1; case Sreg0 is when '0' => Out0 <= '1'; when '1' => Out0 <= '0'; when others => null; end case; end if; end process DoTransiciones; end Estados_arch; Whats wrong with this code? Is there any other documentation than http://asim.lip6.fr/alliance/doc/? Any newsgroup? Thank you very much in advance. Gonzalo Arana

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 22 March 2001.