- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi All,
Is there a difference in the following declarations: case1: reg [3:0][7:0] abc; case2: reg [3:0] abc [7:0]; case3: reg abc [3:0][7:0]; What's the difference? Thank you!- Balises:
- Intel® Quartus® Prime Software
Lien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Putting dimensions before the variable name is a packed array. packed arrays can only be made of bit types.
Unpacked arrays have the dimensions after the name. They can be any type. http://www.asic-world.com/systemverilog/data_types10.html- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks Tricky!
I need to declare a multi-dimension array of enumerated elements... Could you please take a look in this thread: https://alteraforum.com/forum/showthread.php?t=57903 Thank you again!
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable