Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

kvn0smnsn

Junior Member level 1
Joined
Nov 20, 2022
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
125
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?
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,953
Helped
1,172
Reputation
2,356
Reaction score
1,302
Trophy points
1,393
Location
California, USA
Activity points
32,381
LMGTFY

 

kvn0smnsn

Junior Member level 1
Joined
Nov 20, 2022
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
125
LMGTFY

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

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,953
Helped
1,172
Reputation
2,356
Reaction score
1,302
Trophy points
1,393
Location
California, USA
Activity points
32,381
I can explain it to you, but I can't understand it for you.

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

1669954029624.png
 

    kvn0smnsn

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top