xilinx Synthesis report - please help..

Hi all,

I'm cuurently working on a xilinx spartan 2e design, for debug I'm using the chipscope pro LA. the problem is as follows: I'm using the chipscope pro for looking at the logic lines (bus) that define the "state" of the state machine in order to determine the present state of the machine at a given time. but the chipscope is giving me the binary (or oct, hex etc.) value of the bus. when I'm declaring the state machine in VHDL I'm giving each state a name (the synt' does the enumeration automatically) so I do not know what is the corresponding bus value for each state. I'm pretty sure that the Xilinx synthisizer generates this kind of data but I dont know where to find it and so is their FAE :)

for example: if I declare a simple state machine with the follwoing states:

type state_type is (idle , first , second , last)

I would like to get a reference data such as:

idle = 00 first = 01 second = 10 last = 11

that would be very helpfull when debugging large state machines with chipscope. So if anyone knows where to find it (if possible) I would realy appreciate it.

thanks in advance, Moti.

Reply to
Moti Cohen
Loading thread data ...

Moti,

As you say, the synthesiser automatically assigns binary values to the states. The states could be assigned linearly (e.g. "00", "01", "10", "11"), or as one-hot (e.g. "0001", "0010", "0100", "1000"), or using any other scheme that the synth wants. The assignments could change as your code is changed (e.g. if timing becomes harder to meet due to some change).

Therefore, for your debug purposes, it would be best to assign a different value to a STATE_DEBUG signal upon entering every state, and bring this STATE_DEBUG signal out for your debugging. This still allows the synth the flexibilty of chosing the "best" binary values for the states, but ensures that the debug signal values do not change between builds.

Remove the m after my name for emails, otherwise they will be bounced.

Good Luck,

Ken Morrow, Morrow Electronics Limited, UK.

FPGA design for comms

formatting link

Reply to
Ken Morrow

Identify will display enum types directly. Everything is done in terms of the RTL source. No guessing.

- Ken

Moti Cohen wrote:

Reply to
Ken McElvain

It's just a tad more expensive though, eh?

Cheers, JonB

Reply to
Jon Beniston

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.