Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1069

Puzzled by definition of this struct

$
0
0

Hi, all

me again, I've read a definition of struct as follows:

-- Definition of the packet struct
struct packet {
    kind       : [good,bad];
    addr       : uint (bits : 2) ;
    len        : uint (bits : 6) ;
    data [len] : list of byte ;
    !parity    : byte ;
};

Here, is kind a enumerated type, as it may already be defined? 

Tao


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>