Python and Circuits: HSPICE Binary File Parsing
Hi everyone, my name is Raphael Gonzalez and I am a rising sophomore with an undeclared major. This summer I’ve been working with Prof Spencer’s ACE lab on a number of projects. Among these projects has been the creation of an HSPICE post1 file parser. HSPICE is a circuit simulator, a program that predicts voltages and currents in a user-specified circuit, and it has notoriously opaque binary output file formats that are collectively referred to as “post1 formats”. This is a problem because understanding output files is important for writing automation scripts or using tools like Matlab for analyzing simulation results. Binary file contents as rendered my computer. I’ve included the figure above to make this problem concrete. It’s a screenshot of the output when we open up a post1 output file as text. This is the computer’s best guess of what the file says (it’s not a very good guess). We can force the computer to show us binary it is trying to decipher by using a tool called a he...