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 AM1/4/21
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 AM1/4/21
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:


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