But if the FSM written in Verilog , I can't see the state name .Just
only see the 0001,0010,......
How can I see the state name in the wave window ? It's just for debug
easily .
you can then use your favorite waves display program to watch the opcodes as they move through the pipe simply by displaying state_name and asking it to be displayed in ascii
- Paul
HTH,
Srini
`ifdef SIMULATION
parameter S_idle = "idle ";
parameter S_decode = "decode";
parameter S_start = "start ";
parameter S_wait = "wait ";
parameter state_wid_msb = 47;
`else
parameter S_idle = 4'b0001;
parameter S_decode = 4'b0010;
parameter S_start = 4'b0100;
parameter S_wait = 4'b1000;
parameter state_wid_msb = 3;
`endif
reg [state_wid_msb:0] state;
--
Srinivasan Venkataramanan
ASIC Design Engineer
Software & Silicon Systems India Pvt. Ltd. (An Intel company)
Bangalore, India (http://www.vlsisrini.com)
"hitajian" <hita...@21cn.com> wrote in message
news:2vd3ot4odqs42u3k6...@4ax.com...