home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.vhdl
- Path: sparky!uunet!clsi!daniel
- From: daniel@clsi.COM (Daniel S. Barclay)
- Subject: Re: VHDL: arrays
- In-Reply-To: marent@imec.be's message of Thu, 14 Jan 1993 15:50:56 GMT
- Message-ID: <DANIEL.93Jan21141033@algol.clsi.COM>
- Sender: usenet@clsi.COM
- Organization: CAD Language Systems Inc.
- References: <1993Jan14.155056.13126@imec.be>
- Date: 21 Jan 93 14:10:33
- Lines: 42
-
- > I try to become conversance with VHDL, especially
- > the structure architecture.
- > I have the following question:
- > How can you define a multi-dimensional array of
- > components ? (for creating a design hierarchy with components)
- >
- > e.g.
- >
- > Structural description of Counter is
- >
- > Component And2
- > port(I1, I2: in BIT;
- > O1: out BIT)
- > end Component;
- >
- > begin
- > -- array of instances of component And2
- > ????
- > ????
- > -- e.g. :array with width=10 of instances
- > refering to component And2
- >
- > end Structure;
- >
- > Is it possible in building Cell descriptions?
-
- Have you tried the generate statement with a "for" iteration scheme?
-
- E.g.,
-
- for i in 1 to 10 generate
- C: And2 (I1 => p1(i), I2 => p2(i), O1 => p3(i));
- end generate;
-
- Is that the type of thing you're trying to do?
- --
- ------------------------------------------------------------------------------
- Daniel S. Barclay --who's still searching for a good
- CAD Language Systems, Inc. signature, not liking any of his recent
- Suite 101, 5457 Twin Knolls Rd. feeble attempts to improve on the whiny:
- Columbia, MD 21045 USA Why can't _I_ think of a good signature?
-
-