Re: [myhdl-list] Re: Cosimulation with the simple FSM example.
Brought to you by:
jandecaluwe
From: George P. <ge...@ga...> - 2006-01-04 19:01:56
|
> =3D=3D=3D=3DBegin=3D=3D=3D=3D > from myhdl import * > > t_State =3D enum('SEARCH', 'CONFIRM', 'SYNC', encoding=3D'one_hot') > ACTIVE_LOW =3D 0 > FRAME_SIZE =3D 8 > Jan, Ever since trying myHDL I've been using plain integers to define states for all my code. In one of my modules where I tried using the enum, I noticed that I got incorrect behavior (incorrect initial states, I believe) if I didn't specify the encoding style. It worked correctly when I specified 'encoding=3Done_cold'. I haven't tried other encoding styles. This was in the synthesized hardware (Xilinx ISE w/XST). I didn't co-simulate this module. Is this dependence on encoding type something to be expected when doing synthesis? I don't have the code ready to paste (though I could possibly get something together) I'm just asking in general. Thanks, George |