Questions on Arrays 3 PDF

Title Questions on Arrays 3
Author Bumble Bee
Course Verification of VLSI Circuits using SystemVerilog
Institution PES University
Pages 3
File Size 44.5 KB
File Type PDF
Total Downloads 81
Total Views 138

Summary

Prof. Vinay...


Description

Question on Arrays Does SystemVerilog support multidimensional arrays?

Is there any method to append one dynamic array into another?

Is there a better way (using vector methods available in SystemVerilog) to extract the range of bits from a vector, other than writing our own function to extract the bits?

Any limitations on index data-type for associative arrays? What is not supported? Which array type is good to use in terms of memory? Queues or dynamic array?

Is there a way to accommodate multiple elements having equivalent keys in SystemVerilog using associative arrays similar to multimap in C++?

When we declare the array as int array[10] then is it little endian or big endian format?

Does assigning an existing dynamic array to a new handle perform a deep copy or are these arrays linked?

How do you find the largest number in the array?

How to make an array if one wants create memory like 1 terabyte?

You said that the .delete() would "empty" the array, the text says "delete" the array which one?

Can we pass class handle in index of associative array?

Are the array reduction methods useable with queues?

How to sort the array in ascending and descending order?

How to overwrite a datatype, in a child class (child extends parent), changing the size of datatype. First rule is to declare the field in parent class with virtual keyword. But next?

If you declare a dynamic array with a given size (e.g. 8) and then assign it from a different array (like the one in the example with 4 element), then the first dynamic array will be completely overwritten with the size and elements from the second one, correct? In this example, it will have a size of 4 afterwards.

You mention foreach a lot, which direction does foreach count in? Low to High- High to Low - or does it depend on the declaration?

Can you construct a dynamic array with new[], as in your example?

Why we cannot sort associative arrays?

What is 3 dimensional array? How can we read it?

What is a good way to code FIFO-A transfer to FIFO-B one element at a time since we can't do pop from FIFO-A while also iterating through it in foreach or for loop.

A packed array is actually a vector, whereas an un-packed array is an array in true sense? Why cannot there be better terms, packed, un-packed sound very confusing?

q.sum() with(item>5) adds xpression result. q.find with(item>5) finds actual value which is greater than 5. Why is that difference?

Can you please explain how to choose between a SystemVerilog associative array or a queue when creating a scoreboard?

In a scoreboard we use a combination of associative arrays and queues. Are there any well known use cases like these where we use a combination of array types?

When we prefer to use associative array in real test bench, practical example

How can I group together multiple values that are not the same type, like opcodes and operands?...


Similar Free PDFs