home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / vhdl / 688 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.6 KB  |  55 lines

  1. Newsgroups: comp.lang.vhdl
  2. Path: sparky!uunet!clsi!daniel
  3. From: daniel@clsi.COM (Daniel S. Barclay)
  4. Subject: Re: VHDL: arrays
  5. In-Reply-To: marent@imec.be's message of Thu, 14 Jan 1993 15:50:56 GMT
  6. Message-ID: <DANIEL.93Jan21141033@algol.clsi.COM>
  7. Sender: usenet@clsi.COM
  8. Organization: CAD Language Systems Inc.
  9. References: <1993Jan14.155056.13126@imec.be>
  10. Date: 21 Jan 93 14:10:33
  11. Lines: 42
  12.  
  13. > I try to become conversance with VHDL, especially
  14. > the structure architecture.
  15. > I have the following question:
  16. >   How can you define a multi-dimensional array of
  17. >   components ? (for creating a design hierarchy with components)
  18. >   e.g. 
  19. >        Structural description of Counter is
  20. >            Component And2 
  21. >           port(I1, I2: in BIT;
  22. >                O1:     out BIT)
  23. >             end Component;
  24. >         begin
  25. >        -- array of instances of component And2 
  26. >        ????
  27. >        ????
  28. >        -- e.g. :array with width=10 of instances 
  29. >                 refering to component And2
  30. >     end Structure;
  31. > Is it possible in building Cell descriptions?
  32.  
  33. Have you tried the generate statement with a "for" iteration scheme?
  34.  
  35. E.g.,
  36.     
  37.     for i in 1 to 10 generate
  38.         C: And2 (I1 => p1(i), I2 => p2(i), O1 => p3(i));
  39.     end generate;
  40.  
  41. Is that the type of thing you're trying to do?
  42. --
  43. ------------------------------------------------------------------------------
  44. Daniel S. Barclay                    --who's still searching for a good 
  45. CAD Language Systems, Inc.           signature, not liking any of his recent
  46. Suite 101, 5457 Twin Knolls Rd.      feeble attempts to improve on the whiny:
  47. Columbia, MD  21045  USA             Why can't _I_ think of a good signature?
  48.  
  49.