[sv-bc] Doubts related to typecasting

From: Shabnam Banu <shabnam_at_.....>
Date: Mon Feb 26 2007 - 23:18:56 PST
Hi,
I have some doubts related to typecasting.

The  template for a typecast operator is casting_type'(expression).

Where the  casting_type may be:
 
casting_type ::= simple_type | constant_primary | signing
simple_type ::= integer_type | non_integer_type | ps_type_identifier | 
ps_parameter_identifier

I want to know that  typedefs of which of the simple and aggregate types 
are allowed
for casting_type.

P.S:: LRM already contains examples with typedefs of structures.i.e

typedef struct {
bit isfloat;
 union { int i; shortreal f; } n;
} tagged_st;
typedef bit [$bits(tagged_st) - 1 : 0] tagbits;
tagged_st a [7:0];
tagbits t = tagbits '(a[3]);
bits a[4] = tagged_st' (t);

I want to know the details of all possible types that can be used as above.
 
Thanks and regards,
Shabnam.    



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Feb 26 23:21:44 2007

This archive was generated by hypermail 2.1.8 : Mon Feb 26 2007 - 23:22:09 PST