home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / vhdl / 619 < prev    next >
Encoding:
Text File  |  1992-12-30  |  3.9 KB  |  164 lines

  1. Newsgroups: comp.lang.vhdl
  2. Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!cc03!ragon
  3. From: ragon@seri.philips.nl (Pierre Ragon Cao/int 7317)
  4. Subject: type conversion and configuration
  5. Message-ID: <1992Dec30.130712.5464@phcomgw.seri.philips.nl>
  6. Originator: news@phcoms.seri.philips.nl
  7. Sender: news@phcomgw.seri.philips.nl
  8. Organization: SERI-CEN Network Services, Philips C&P, Eindhoven, The Netherlands
  9. X-Newsreader: Tin 1.1 PL5
  10. Date: Wed, 30 Dec 1992 13:07:12 GMT
  11. Lines: 151
  12.  
  13.  
  14. Hi folks
  15.  
  16. I would be grateful if somebody can help with the following VHDL 
  17. examples.
  18. I compiled them on VANTAGE spreadsheet and Model Technology V-System
  19. and got different results.
  20.  
  21. -EXAMPLE 1
  22. **********
  23.  
  24. LIBRARY ieee;
  25. USE ieee.std_logic_1164.ALL;
  26.  
  27. PACKAGE bizarre IS
  28.  
  29. CONSTANT X : std_ulogic:= std_ulogic'(to_x01(bit_vector'("00"))(1));
  30.  
  31. CONSTANT Y : std_ulogic:= to_x01(bit_vector'("00"))(1);
  32.  
  33. END bizarre;
  34.  
  35. One of the tools gives the report below while the other compiles it OK.
  36.  
  37. Error: LINE 6 * More than one interpretation found for this indexed expression
  38. Error: LINE 8 * More than one interpretation found for this indexed expression
  39.  
  40. My opinion is that there is no ambiguity.
  41. At worse the indexing operation needs to explicitly know the type and then only
  42. line 6 is OK.
  43.  
  44. -EXAMPLE 2
  45. **********
  46.  
  47. -----------------------------------------
  48. ENTITY circuit IS 
  49. END circuit;
  50.  
  51. -----------------------------------------
  52. ENTITY framegen IS 
  53. PORT (
  54.       dclreg  : IN bit_vector(7 DOWNTO 0)
  55.      );
  56. END framegen;
  57.  
  58. -----------------------------------------
  59. ARCHITECTURE cpu68302 OF framegen IS
  60.  
  61. BEGIN --architecture
  62. END cpu68302;
  63.  
  64. -----------------------------------------
  65. ENTITY micint IS 
  66. PORT (
  67.       dclreg  : OUT bit_vector(7 DOWNTO 0)
  68.      );
  69. END micint;
  70.  
  71. -----------------------------------------
  72. ARCHITECTURE structural OF circuit IS
  73. COMPONENT micint
  74. PORT (
  75.       dclreg  : OUT bit_vector(7 DOWNTO 0)
  76.      );
  77. END COMPONENT;
  78.  
  79. FOR c1:micint USE ENTITY WORK.micint(structural);
  80.  
  81. COMPONENT framegen
  82.  
  83. PORT (
  84.       dclreg  : IN bit_vector(7 DOWNTO 0)
  85.      );
  86. END COMPONENT;
  87.  
  88. SIGNAL dclreg  : bit_vector(7 DOWNTO 0);
  89.  
  90. BEGIN
  91.  
  92. C1 : micint
  93.  
  94. PORT MAP(
  95.        dclreg   =>  dclreg
  96.         );
  97.  
  98. C2 : framegen
  99.  
  100. PORT MAP(
  101.        dclreg   =>  dclreg
  102.         );
  103.  
  104. END structural;
  105.  
  106. -----------------------------------------
  107. ARCHITECTURE structural OF micint IS
  108. BEGIN --architecture
  109. END structural;
  110.  
  111. -----------------------------------------
  112. CONFIGURATION conf68302_0 OF circuit IS
  113. FOR structural
  114.     FOR c2 : framegen 
  115.         USE ENTITY WORK.framegen(cpu68302);
  116.     END FOR;
  117. END FOR;
  118. END conf68302_0;
  119.  
  120. DESCRIPTION
  121.  
  122. I have a testbench named circuit made of 2 components
  123. framegen and micint.
  124. The component c1 is bound to the entity micint by a 
  125. configuration specification.
  126.  
  127. The component c2 is bound to the entity framegen by
  128. a configuration declaration.
  129.  
  130. For one tool i notice that if i reanalyze the architecture
  131. of micint, then the configuration declaration must be reanalyzed,
  132. whereas the other tool does not recompile the configuration.
  133.  
  134. Now per LRM PARAGRAPH 11.4 a given library unit is potentially
  135. affected by a change in any library unit whose name is referenced
  136. within the given library unit....
  137. If a library unit is changed,then all library units potentially
  138. affected by such changes must be reanalyzed before they can be 
  139. used again.
  140.  
  141. HERE micint is not referenced at all in configuration
  142. called conf68302_0.
  143. To my opinion there is no need to reanalyze the configuration
  144. after a change in a design unit which does not affect it.
  145.  
  146.  
  147. ----------------------------------------------------------------
  148. TO reach me via the net this line must be included in the file :
  149. (no other sentence beginning with Subject : before the one below)
  150.  
  151. Subject : <RAGON:FRTRTS1>
  152.  
  153. and you send the file to : serigate@phcoms.seri.philips.nl
  154. using your mail program.
  155.  
  156. From : Pierre RAGON
  157.        Philips Communication Systems
  158.        5,avenue Reaumur 
  159.        BP21,BPI50
  160.        92352 Le Plessis Robinson
  161.        Cedex , FRANCE
  162.        tel : +33 1 40 94 73 17
  163.        fax : +33 1 40 94 77 33
  164.