[SOLVED] Trying to Understand the Syntax with Two-Dimensional Arrays

Status
Not open for further replies.

kvn0smnsn

Junior Member level 2
Joined
Nov 20, 2022
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
165
I have a piece of code I'm putting together:
Code:
module twoDim( hexes, switches);
  output [ 7:0] hexes [ 5:0];
  input  [ 9:0] switches;

  // Rest of the file deleted.

endmodule
With this, is (hexes) an array of six values, each of which has eight bits?
Or is it an array of eight values, each of which has six bits?
 

So Barry, are you saying that it is an array of six values, each of which is eight bits long?
 

I can explain it to you, but I can't understand it for you.

It's right there if you actually read the document.

 

    kvn0smnsn

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…