Closed ziggy90127 closed 1 week ago
I looked into the Comparator.lib file for KiCad 5 and it appears that LM393
is an alias for the LM2903
, so the schematic is showing the main part identifier instead of the alias. Is this a mistake? If you drop an LM393 into the schematic, does it show LM393
as the part name or LM2903
?
#
# LM2903
#
DEF LM2903 U 0 5 Y Y 3 L N
F0 "U" 150 150 50 H V C CNN
F1 "LM2903" 250 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS LM393
Thanks for looking into this. I created a new schematic in v5, and pressed A for add, and typed in LM393. The description says it's an alias to LM2903. The part it added is labelled LM393. I was playing with chatgpt4o, and the skidl it generated included an LM393. I hadn't considered that it may be an alias. No matter, the circuit chatgpt4o generated was nonsense, so I'm not pursuing it. Hopefully a future version of chatgpt will generate a .kicad_sch directly with no mistakes.
I created a new schematic in v5, and pressed A for add, and typed in LM393. The description says it's an alias to LM2903. The part it added is labelled LM393.
OK, it sounds like SKiDL should generate the netlist using LM393 instead of using the LM2903 base part. I'll create an issue for this.
Hopefully a future version of chatgpt will generate a .kicad_sch directly with no mistakes.
That may be a long time coming. Creating a schematic in a .kicad_sch file requires things like placing the part symbols and then routing the wires that connect the symbol pins (it's more complicated than making a netlist). I doubt there's enough examples to train chatgpt so that it can do this based only on statistics (chatgpt has a hard enough time doing arithmetic without using external tools). However, I would love to be wrong about this.
Having chatgpt write SKiDL (or something like it) and then generating the schematic using dedicated tools is probably going to be more feasible in the short term. chatgpt can already write Python and the entire SKiDL manual could be loaded into its context window to guide what it generates.
I'd be interested in hearing about any future experiments you do regarding circuit synthesis using AI tools. Just open a discussion thead.
I've fixed this issue in the development
branch. Thanks for bringing it to my attention.
Thank you!
Kicad v5, macOS 10.14.6