Comment by liu3hao

13 days ago

Thank you! I haven't tried circuitscript with LLMs yet, but I do plan to do so in the future. As the language is similar to python, hopefully it is able to work well syntactically. But of course, the correctness and accuracy of the circuit would be more challenging to get right. Your work at https://www.mikeayles.com/#tokn is very cool! This will be very useful when I try LLMs!

I have seen both atopile and tscircuit too and they are really complete it terms of the entire PCB design flow compared to circuitscript, which is just focused on the schematic part.

The ato language works well for specifying parts and parameters, but is very basic for defining connectivity. This means that the designer will have minimal control of how the final schematics will turn out. Of course, atopile focuses on the complete design flow, so having nice schematics could be a want rather than a need. For myself, especially in my professional job, clear and well-organized schematics are important not just for understanding and creation, but also troubleshooting the design and eventually improving the design.

I did try some automatic layout features for the schematic that balances giving the user some control over the overall schematic, but this was really hard to get right. In the end, I went with the logo/turtle approach and give full layout control to the user.

For tscircuit, I like typescript as a programming language and circuitscript itself is created in typescript. But typescript is really clunky to use for schematic design. Coupled with react, there is a lot of extra noise/symbols when looking at the code and for complex designs, it will be challenging to understand and troubleshoot. Moreover, I believe that typescript/javascript is less common among electronics engineers compared to python (which circuitscript is based on). The simplicity of python is one of the reasons it is popular and that is what I believe might help to lower the learning curve for circuitscript.