View Single Post
  #2 (permalink)  
Old 05-17-2006, 04:16 PM
Stephen Williams
Guest
 
Posts: n/a
Default Re: how i declare array for input port

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kunal wrote:
> hi
> if i declare array for input port like input [1:0] in [7:0];
> it is giving syntax error.
> if i use reg then its ok but reg is use for input port.
> my question is how to declare array for input port.
>


You can't have an array for a port, input or output, in Verilog.

- --
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEaz5frPt1Sc2b3ikRAruPAJwILkEHeyGpUvfbCdPKEH TR99qNsACfXh2w
7+828uQoHTTXptp9HkQFg8o=
=Gym/
-----END PGP SIGNATURE-----
Reply With Quote