[sv-bc] RE: [sv-ec] RE: Mantis 1526, 1709

From: Jonathan Bromley <jonathan.bromley_at_.....>
Date: Mon Feb 18 2008 - 08:41:41 PST
Shalom,

> What if the target is a multi-dimensional dynamic array, i.e., dynamic
> array of dynamic arrays?

Ouch.

I think this is covered by existing text in 6.24.3:

  Both source_t and dest_t can include one or more dynamically 
  sized data in any position (for example, a structure containing 
  a dynamic array followed by a queue of bytes). If the source 
  type, source_t, includes dynamically sized variables, they are 
  all included in the bit stream. If the destination type, 
  dest_t, includes unbounded dynamically sized types, the 
  conversion process is greedy: compute the size of the source_t,
  subtract the size of the fixed-size data items in the destination, 
  and then adjust the size of the first dynamically sized item in 
  the destination to the remaining size; any remaining dynamically 
  sized items are left empty.

All this assumes we agree that, in an assignment from a 
streaming_concatenation to an object of bit-stream type,
there is an implicit bit-stream cast to the type of the
target object.

Presumably, those who wish to escape with their sanity intact
are likely to prefer to avoid this situation :-)
-- 
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223                   Email: jonathan.bromley@doulos.com
Fax: +44 (0)1425 471573                           Web: http://www.doulos.com

The contents of this message may contain personal views which 
are not the views of Doulos Ltd., unless specifically stated.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Feb 18 08:43:26 2008

This archive was generated by hypermail 2.1.8 : Mon Feb 18 2008 - 08:43:54 PST