12.07.2015 Views

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Memory panes GR-167Memories you can view<strong>ModelSim</strong> identifies certain kinds of arrays in various scopes as memories. Memoryidentification depends on the array element kind as well as the overall array kind (i.e.associative array, unpacked array, etc.).VHDLElement kind enum a ,std_logic_vector,std_bit_vector, orinteger.Verilog/SystemVerilogany integral type. (i.e. integer_type):shortint, int, longint, byte, bit (2 state),logic, reg, integer, time (4 state),packed_struct / packed_union (2 state),packed_struct / packed_union (4 state),packed_array (single-Dim, multi-D,2 state and 4 state),enum or string.Scope:recognizableinArray kindarchitecture,process, or recordsingledemensionalormulti-dimensionalmodule, interface, package, compilation unit,struct, or static variableswithin a task / function / named block / classsingle-dimensional unpacked, associative, ordynamic arrays, or multi-D unpacked arrays.a.These enumerated type value sets must have values that are longer than one character.The listed width is the number of entries in the enumerated type definition and the depthis the size of the array itself.Associative arrays in Verilog/SystemVerilogFor an associative array to be recognized as a memory, the index must be of an integral type(see above). An associative array with wildcard index type is not supported as a memory.For associative arrays, the element kind can be any type allowed for fixed-size arrays.Viewing single and multidimensional memoriesSingle dimensional arrays of integers are interpreted as 2D memory arrays. In these cases,the word width listed in the Memory List pane is equal to the integer size, and the depth isthe size of the array itself.Memories with three or more dimensions display with a plus sign ’+’ next to their namesin the Memory List. Click the ’+’ to show the array indices under that level. When youfinally expand down to the 2D level, you can double-click on the index, and the data for theselected 2D slice of the memory will appear in a memory contents pane in the MDI frame.Viewing packed arraysBy default packed dimensions are treated as single vectors in the memory contents pane.To expand packed dimensions of packed arrays, select View > Memory Contents >Expand Packed Memories.To change the permanent default, edit the PrefMemory(ExpandPackedMem) variable. Thisvariable affects only packed arrays. If the variable is set to 1, the packed arrays are treated<strong>ModelSim</strong> <strong>SE</strong> <strong>GUI</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!