RE: Re: structures/records in Verilog - a new BTF item - Complete Spec

From: Vivek Sagdeo (vivek@veri-log.com)
Date: Fri May 16 1997 - 08:55:13 PDT


The interpretation of structures as concatentations is given
to explain the semantics behind the structure construct. One can use
the structures within concatenations using { s1, s2, ... } construct.
{s} is same as s for all practical purposes. I am not expecting
actual use of the concatenation symbol while using strucures except
when actually concatentating structures. However, to understand the
implications of use of structures at some places
in Verilog model, concept of concatentaion is used in the spec.

For example, on ports, a structure can be viewed as a concatenation of
its
elements to decide on the semantics of hooking up a structure.

>>
>> 5. Passing as parameter : Either the whole structure or parts can
>> be passed as a parameter to tasks and functions. Here, one
>> can look at the structure as a concatenation of the items
>> declared within the structure.
...

>I wonder if it is advisable to permit a dual interpretation of a
>structure as both a structure and as a concatenation. One possibility
>is to interpret structure as a concatenation only inside a
>concatenation. So, for example to interpret s as a concatenation, use
>{s}.

-- 
Vivek Sagdeo
PerformanCAE Corporation,
444 Castro St, Suite 408,
Mountain View, CA 94041
http://www.veri-log.com
1-888-VERILOG
Providing Training, Books, Tools and Consulting in Verilog and CAE


This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:40 PDT and
sponsored by Boyd Technology, Inc.