- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to have this array in VHDL?
[i][j] = [1][sample1, sample2, sample3] [2][sample1, sample2, sample3, sample4, sample5] [3][sample1, sample2] It seems like [j] dimension has to be a fixed value.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Is it possible to have this array in VHDL? --- Quote End --- No. You could use an array if you changed your format [i][j] = [1][numvalid, sample1, sample2, sample3, 0 , 0 ] [2][numvalid, sample1, sample2, sample3, sample4, sample5] [3][numvalid, sample1, sample2, 0 , 0 , 0 ] or you can use a list of lists (or an array of lists). You'll have to be careful if you're using this for synthesis though. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i and j have to be a fixed value when you instantiate the signal or variable, as with any language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, in Matlab you can have any combination of dimensionality for j. Would Verilog be better at this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
not really, it all comes down to what is synthesisable, not about which language is better at arrays.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page