alliance-support '2000
Re: A bug???


Ludovic JACOMME (Ludovic.JACOMME@asim.lip6.fr)
Mon, 19 Jun 2000 16:24:32 +0200

Hi Rafael, On Sun, Jun 18, 2000 at 09:58:49PM -0500, rafael wrote: > Hi, with FPGEN (Alliance 4): > I put a DP_PDFF in a figure (dff_fpgen.c). I run fpgen, which generates > dff_fpgen.vst. I create a pattern file (dff_genpat.pat) from a genpat > file (dff_genpat.c). I do a simulation with asimut and errors are > generated: > " Error 102: instance and model of 'pdff_16x16x0l_cl' mismatch " > > I include this little example (file dff.tgz attached). Just execute: > > make dff_pat Yes, it's due to the output port q of the model pdff_16x16x0l_cl. This port has the direction inout (in the vbe file generated by FpGen) and has the direction out in you dff_fpgen.vst ... I don't know if it's a feature or bug, but if you want your design to simulate properly you have to correct it by hand as follows : in the dff_fpgen.vst : -- Entity Declaration ENTITY dff_fpgen IS PORT ( d : in BIT_VECTOR (15 DOWNTO 0); -- d clk : in BIT; -- clk hab : in BIT; -- hab q : inout BIT_VECTOR (15 DOWNTO 0); -- q ^^^^^ nq : out BIT_VECTOR (15 DOWNTO 0); -- nq vdd : in BIT; -- vdd vss : in BIT -- vss ); END dff_fpgen; -- Architecture ARCHITECTURE VST OF dff_fpgen IS COMPONENT pdff_16x16x0l_cl port ( wen : in BIT; -- wen ck : in BIT; -- ck d : in BIT_VECTOR(15 DOWNTO 0); -- d q : inout BIT_VECTOR(15 DOWNTO 0); -- q ^^^^^ nq : out BIT_VECTOR(15 DOWNTO 0); -- nq vss_0 : in BIT; -- vss_0 > > If you know what's the problem, or if you don't receive the error > message, please email me (rafabe@telesat.com.co). > > Thanks and good luck > > Rafael Becerra > > Best regards, Ludo. (_) ___ Ludovic JACOMME _ _ ( ) ( ) ( ) ( 6 ) Laboratoire LIP6, Equipe ASIM ( ) (_) ( _ ) Couloir 55-65, 2eme etage, ( )___ ( ) Universite P. et M. Curie (P6) (_____) (_) 4 place Jussieu, 75252 Paris Cedex 05 Tel: (33) 01.44.27.54.15 Fax: (33) 01.44.27.72.80 ICQ: 62526530 mailto: Ludovic.Jacomme@asim.lip6.fr http: //asim.lip6.fr/~ludo

 



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