Re: [myhdl-list] [EXT] Re: Inconsistency between simulation and conversion
Brought to you by:
jandecaluwe
From: David S. <dst...@kc...> - 2016-04-28 13:40:41
|
This makes me wonder, in simulation is it actually incrementing counter.next, or is it incrementing the value of counter? It doesn’t feel like having augmented operators work the way most people would expect (counter.next +=1 -> counter.next = counter + 1) is going to cause anyone any actual problem. Am I missing something? Or is it just harder to make work correctly than it’s worth? Dave From: Samuele Disegna [mailto:sm...@gm...] Sent: Thursday, April 28, 2016 7:13 AM To: General discussions on MyHDL Subject: [EXT] Re: [myhdl-list] Inconsistency between simulation and conversion On Thu, Apr 28, 2016 at 1:47 PM, Henry Gomersall <he...@ma...<mailto:he...@ma...>> wrote: On 28/04/16 07:54, Nicolas Pinault wrote: > When using this statement "counter.next += 1" I get an error when > converting my design to VHDL : > > myhdl.ConversionError: in file > Z:\myHDL_Tests\NoiseFilter\src\noise_filter.py, line 51: > Not supported: Augmented signal assignment > > This makes sense. > However, this same statement does not trig any error when simulating the > design. > Is this the intended behaviour ? > Incrementing .next is a slightly odd thing to want to do, I would remove slightly to the sentence :). You are supposed to do "counter.next = counter+1" and not "counter.next = counter.next+1" Simulation in MyHDL is just execution of your code and you are allowed to do nasty things! Samuele This e-mail and its attachments are intended only for the individual or entity to whom it is addressed and may contain information that is confidential, privileged, inside information, or subject to other restrictions on use or disclosure. Any unauthorized use, dissemination or copying of this transmission or the information in it is prohibited and may be unlawful. If you have received this transmission in error, please notify the sender immediately by return e-mail, and permanently delete or destroy this e-mail, any attachments, and all copies (digital or paper). Unless expressly stated in this e-mail, nothing in this message should be construed as a digital or electronic signature. For additional important disclaimers and disclosures regarding KCG’s products and services, please click on the following link: http://www.kcg.com/legal/global-disclosures |