Logical inversion in XSPICE digital devices using tilde `~` character does not work: part 1
934 4
example 6 years ago
**BUG** Concise problem statement: Logical inversion using tilde `~` character does not work because `~` placed in netlist text in schematic canvas is ignored and does not appear in spice netlist. Steps to reproduce bug: Running this netlist in ngpsice.com (release 26) with the tilde in: ainv1 ~ind outd buff inverts the input OK. Removing the tilde so that line becomes: ainv1 ind outd buff and inserting one into: aoutbridge1 [~outd] [out] dac then that inverts the input OK too. However, running this netlist in EasyEDA, then the tilde is ignored in either location. * This appears to be a bug in EasyEDA. This is the example shared on ngspice.com: http://www.ngspice.com/index.php?public_circuit=CFHOrs Results: Logical inversion using tilde `~` character does not work because `~` placed in netlist text in schematic canvas is ignored and does not appear in spice netlist. Expected results: Placing `~` in front of a digital input signal should create a logical inversion of that input. Url: https://easyeda.com/editor#id=XxqICUAS0 Browser: Chrome in Kubuntu 12.04 LTS.
Comments
dillon 6 years ago
https://easyeda.com/Doc/Open-File-Format/common.htm#~%28Tilde%29 `~` is EasyEDA format, It is a bit litter hard to fix this.
Reply
example 6 years ago
I will make the digital devices using discrete inverters instead of `~`. It will make the digitial devices less elegant, a little bigger and maybe a little slower but that's OK. :)
Reply
andyfierman 6 years ago
Could you use a substitute character? Or the something like the HTML code for `~` `~` ?
Reply
andyfierman 6 years ago
What about substituting the `!` character in place of the tilde? That would be consistent with the use of the `!` character as shown here as the `unary not` (logical inversion): <https://easyeda.com/Doc/Simulation-eBook/Expressions.htm#Operators> (From the ngspice manual: <http://ngspice.sourceforge.net/docs/ngspice-manual.pdf#subsection.2.8.5>)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.