Subject: Re: FSM Enhancement Goals and Thoughts
From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Thu Dec 13 2001 - 09:19:59 PST
At 08:47 AM 12/13/2001, you wrote:
>BTW, there is a trick I have seen people use instead of using the
>case(1'b1) style for inferring one-hot designs.
>
>parameter S0 = 1, S1 = 2, S2 = 4, S3 =8,
> RS0 = 4'b???1, RS1 = 4'b??1?, RS2 = 4'b?1??, RS3 = 4'b1???;
>
>casez(state)
> RS0: ... next_state = S2;
> RS1: ...
> RS2: ... next_state = S1;
>
>endcase
It's been a while since I experimented with synthesizing that style, but at
one time, DC compiler did not allow mask bits in the case expression. Does
anyone know if synthesis in general supports this now? Does the proposed
1364.1 synthesis subset recommend its support?
Stu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland Sutherland HDL Inc.
stuart@sutherland-hdl.com 22805 SW 92nd Place
phone: 503-692-0898 Tualatin, OR 97062
www.sutherland-hdl.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This archive was generated by hypermail 2b28 : Thu Dec 13 2001 - 09:20:15 PST