Re: [sv-bc] @* vs. always_comb

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Mon Dec 05 2005 - 23:06:26 PST
Nasim,

Stu writes of "the importance of using 4-state enumerated types".

As you probably already know, the default base type of an enumerated
type is a 32-bit two-state 'int', so to get a four-state base type, one
needs to declare something like --

     enum logic [1:0] {WAIT, LOAD, STORE} State, NextState;

The C-like default base type can be a surprise if one is used to doing

     localparam WAIT = 2'b00, LOAD = 2'b01, STORE = 2'b10;

-- Brad
Received on Mon Dec 5 23:06:30 2005

This archive was generated by hypermail 2.1.8 : Mon Dec 05 2005 - 23:06:47 PST