Rules | Recent posts | topic RSS | Search | Register  | Log in

ISE Synthesis problem - need explanations concerning 2 codes


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> ISE Synthesis problem - need explanations concerning 2 codes
Author Message
abionnnn



Joined: 18 Jun 2004
Posts: 39
Helped: 3


Post30 Jun 2009 3:43   

ISE Synthesis problem


I'm missing some fundemental understanding of the synthesis process in ISE. Can you explain why the following two pieces of code generate different behaviour?

Code:

if (filter_rota && !delayed_rota) begin
   enable <= 1;
   direction <= filter_rotb;
end
else begin
   enable <= 0;
   direction <= direction;
end


Code:

enable <= filter_rota && !delayed_rota;
if (enable)
   direction <= filter_rotb;


As you may guess, the second one sends through the previous direction on edge detection.
Back to top
abionnnn



Joined: 18 Jun 2004
Posts: 39
Helped: 3


Post30 Jun 2009 11:36   

ISE Synthesis problem


Obviously I've been writing too much procedural code write now, it was obvious when looking at the synthesised circuit. The first code is correct, the second is not.

Lets say that the condition filter_rota && !delayed_rota transitions to true. In the first case, the if true is traversed. In the second case, the result is written into enable, but before this is finalised, enable is tested and fails, thus not updating the direction until the next clock.

I hope this has helped.
Back to top
Google
AdSense
Google Adsense




Post30 Jun 2009 11:36   

Ads




Back to top
tariq786



Joined: 24 Feb 2004
Posts: 194
Helped: 28


Post01 Jul 2009 12:25   

ISE Synthesis problem


This is what i will try.

I shall put brackets around the expression in the second code and remove non blocking statement <= statement to blocking =

See if this helps.

This has nothing to do with ISE. This has to do with verilog coding
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> ISE Synthesis problem - need explanations concerning 2 codes
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
dc offset problem - need suggestion concerning a circuit (2)
Xilinx ISE Synthesis tool (4)
Long time Synthesis in ISE (2)
i have a problem concerning winxp partitioning (1)
DSP synthesis tool for xilinx ISE webpackage (5)
diff b/w synthesis and implementation in xilinx ISE (1)
Synthesis Help:in verilog codes (7)
need some explanations for "–loop_iteration_limit" (3)
How to view synthesis results in Xilins ISE (9)
regarding fatal eroor in xilinx ISE 7.1i during synthesis (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS