Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > about xilinx synthesizer.

Reply
Thread Tools

about xilinx synthesizer.

 
 
Amit
Guest
Posts: n/a
 
      11-02-2008

hello group,

I have written two small vhdl code and now I am asked the following
questions, please just point where I can find some reading about it to
answer them. (I am using xilinx ise)

regards,
amit


Different synthesis tools use different styles to synthesize the state
machines.
Whatstyle does XST use to synthesize the state machine that you
coded?
Is there any way to force the tool to use specific options for
synthesizing state machines?

 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      11-02-2008
Amit wrote:

> I have written two small vhdl code and now I am asked the following
> questions, please just point where I can find some reading about it to
> answer them. (I am using xilinx ise)


> Different synthesis tools use different styles to synthesize the state
> machines. What style does XST use to synthesize the state machine that you
> coded? Is there any way to force the tool to use specific options for
> synthesizing state machines?


It is unfortunate that your instructor would ask
such a poorly formed question.
A register that is declared as a type enumeration
has no explicit encoding. For example, a register
of the type

type TxState_t is (
IDLE,
START,
SEND,
STOP
);

is usually encoded using the binary values of two flops,
or onehot values of four flops. If the designer gives
no further hints, synthesis will use its default
encoding strategy. This strategy will vary by vendor,
target device, and tool version.

Last time I checked, brands A and X use binary
encoding up to enum length 4 and one-hot encoding
for larger enums. This is a synthesis optimization
and in 99.9% of cases the designer saves time
and gets adequate utilization by using the defaults.

Old school TTL and verilog designs did not have
the option of the enum abstraction, and many
academics remain fascinated by the notion
of an 'optimum' state encoding.

No worse than playing tetris, or working
crossword puzzles, I suppose.

-- Mike Treseler
 
Reply With Quote
 
 
 
 
jeppe jeppe is offline
Senior Member
Join Date: Mar 2008
Location: Denmark
Posts: 346
 
      11-02-2008
Well I'm an instructor and could have asked this question myself.

The correct answer will properly be:

If your implement a statemachine in a CPLD will the combinatorial logic compared with the number of F/Fs mean that binary and gray style gives the best implementation.

If how ever your coding for a FPGA will the number of F/F's be quite large and hence will a One hot coding give the best result. This specially true if you want to implement a statemachine with more then say 20 states.

BUT for a 5 states State Machine would it be hard to spot any diffence in the number af LUTs used.

If you right click at the Synthesize menu can you find a selection for the statemachine coding (See below)

Hope you found this useful
Jeppe

 

Last edited by jeppe; 11-02-2008 at 08:01 PM..
Reply With Quote
 
Enes Erdin
Guest
Posts: n/a
 
      11-03-2008
You can read Xilinx constraints guide. Here you will see that there is
an attribute called FSM_STYLE. By this you can force "XST" to use a
defined way of encoding. Or you can do it through synthesis options in
"XST".

I think this helps you.

Good luck,

--enes
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xilinx FPGA protoboard < $200 Mark Riegert VHDL 1 07-30-2003 04:01 PM
Altera to Xilinx Ronny Hengst VHDL 1 07-24-2003 05:05 PM
xilinx logiblox and modelsim SE 5.6 Tim Terry VHDL 1 07-21-2003 03:25 PM
Xilinx synthetize problems Pedro Claro VHDL 7 07-10-2003 12:19 AM
Re: ModelSim 5.7 and xilinx libraries David Bishop VHDL 1 06-28-2003 04:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57