Newbie question on xschem: I'm doing a few of the examples and want to run the "cmos_example.sch." The schematic in the examples directory has symbols it assumes are in the same directory as the schematic (they are elsewhere). Although I could copy them over, I'd like to know if there's a way in the schematic editor to change the path to the symbol. When I try to edit the symbol property, the path is shown, but it's not editable. I can see occasions where the ability to edit the symbol path would be very useful.
w
Weston Braun
05/11/2021, 1:09 AM
I have directly modified the schematic file in a text editor before. That has solved the issue.
Weston Braun
05/11/2021, 1:09 AM
You can also add the path where the schematic symbols are to your xschemrc file
s
stefanoaz
05/11/2021, 1:16 AM
I thought of that, but here, the paths to the symbols in the .sch file are not shown. But xschem "knows" the path it is using. I normally get symbols correctly for sky130 schematics. But the xschem example files aren't in that path. Still, regardless of whether this is a xschemrc issue or not, editing a symbol's path would be handy.
stefanoaz
05/11/2021, 1:19 AM
And I thought I did append the symbol path in the rc file, but apparently not correctly.
stefanoaz
05/11/2021, 1:40 AM
So - just to proceed with the example I went ahead and copied the standard xschem library symbols over to the example schematic directory. Everything's fine. But the means of editing a symbol path on the fly is still a question.
Here's a segment of the .sch file - no paths for the standard symbols are shown, even though the path is shown in the property editor. Maybe this is because the path here is the same as the schematic path. I will try to put a hard path into the .sch and see what happens.
w
Weston Braun
05/11/2021, 1:43 AM
I think in that case those are all the generic xschem symbols, so they are at the base of the xschem symbol library
s
stefanoaz
05/11/2021, 2:01 AM
Okay - I verified that putting a hard path ahead of the symbol name in the .sch text file, gets reflected in the schematic editor and symbol property. So that appears to be the most expedient way to change the symbol path, as you suggested @Weston Braun.
That was the real question. Correcting a library path is easy, but making changes to a particular symbol's path is more broadly useful in general. I think the path ought to be editable in the property browser - that way I could keep the parameter settings but change to an alternate symbol that I might have set up to use the same parameters.
But doing it in the text editor is almost as good. Thanks 🙂