FPGA: i get a different answer in modelsim and in device

OP #3967850
Rate this post
• ▲ useful
▼ not useful
I'm new to VHDL and require some help. I'm Interfacing with Artix 7 to 
make a simple modular multiplier but i have some problems. When I 
synthesize my code i get some warnings which i think are wrong so i 
ignored them. when I run post route simulation i got the results as 
required but when i burned the code on hardware i get a different answer 
for the same value that i check in the stimulus.
Can some one please help me.

the warnings that i get are:

Xst:737 - Found 1-bit latch for signal <zt<1>>. Latches may be generated 
from incomplete case or if statements. We do not recommend the use of 
latches in FPGA/CPLD designs, as they may lead to timing problems.

Xst:1710 - FF/Latch <C_b_out_30> (without init value) has a constant 
value of 0 in block <Montgomery_multiplier>. This FF/Latch will be 
trimmed during the optimization process.

Xst:1895 - Due to other FF/Latch trimming, FF/Latch <z8_19> (without 
init value) has a constant value of 0 in block <Montgomery_multiplier>. 
This FF/Latch will be trimmed during the optimization process.

Xst:3001 - This design contains one or more registers or latches with an 
active
asynchronous set and asynchronous reset. While this circuit can be 
built,
it creates a sub-optimal implementation in terms of area, power and
performance. For a more optimal implementation Xilinx highly recommends
one of the following:
1) Remove either the set or reset from all registers and latches if
not needed for required functionality
2) Modify the code in order to produce a synchronous set
and/or reset (both is preferred)
3) Use the -async_to_sync option to transform the asynchronous
set/reset to synchronous operation
(timing simulation highly recommended when using this option)
Guest #3967854
Rate this post
• ▲ useful
▼ not useful
There is a very simple design rule concerning latches:

Do not use latches.

The problems you are seeing are very likely a direct result of having 
latches. Correct your design until you have no latch warnings.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.