Groups
Groups
Sign in
Groups
Groups
Electric VLSI Editor
Conversations
About
Send feedback
Help
Two spice codes comparison
23 views
Skip to first unread message
Bárbaro Maykel López-Portilla Vigil
unread,
Jan 4, 2021, 6:36:26 AM
1/4/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Electric VLSI Editor
Hi.
Anyone know how I could compare two spice codes automatically?
I need to know if both codes (they are big circuits) are equivalent.
Thank you.
Gavin
unread,
Jan 4, 2021, 8:19:46 AM
1/4/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Electric VLSI Editor
Maybe you could copy the spice text into two different files and try comparing them with a program like Beyond Compare:
https://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools
However, it might be difficult to compare if you wrote the spice code in an arbitrary way which is allowed for spice text as described at:
https://www.staticfreesoft.com/jmanual/mchap09-04-03.html#mchap09-04-03
Maybe you can find a tool on the Internet that can help sort the spice text to make it easier to compare. Or maybe try to write you own sorting code to do it. For example, the Python language can do sorting:
https://stackoverflow.com/questions/27123125/sorting-a-text-file-alphabetically-python
Reply all
Reply to author
Forward
0 new messages