-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
one of the xschem provided example circuits does not load #1
Comments
The following simpler example does not cause errors but only wires are rendered: |
Thanks for reporting! I believe I fixed the first issue. As for the second issue, it happens because the viewer can't find the referenced files in the same folder (e.g. lab_pin.sym or capa.sym). I'm not sure what the lookup algorithm for files would be? Currently, we have a list of known prefixes, and we map them for URLs where to look for files. This works well for all of the examples from the sky130 PDK that I've tried so far: Lines 29 to 54 in a0c8bc5
|
Hi, most xschem schematics have some basic symbols (like a voltage source, vsource.sym) or net labels (lab_wire.sym or lab_pin.sym) or circuit in/out pins (ipin.sym, opin.sym, iopin.sym) , ideal resistors (res.sym), ideal capacitors (capa.sym) and so on. In some xschem user setups the library search path goes down to the |
Thanks for explaining! So now the second issue is also fixed - if the component path doesn't include any "/", and we can't find the file in the same directory as the schematic, we look for them under Good point regarding pulling the devices - at some point we might cache the devices them at build time, to speed up the loading time of the viewer. |
Nice work! if you have some doubts about the xschem file format or anything related just let me know! |
Thanks! I was actually wondering about graphs. I see they are represented as a box with a graph flag, e.g.
but I couldn't find any documentation on what the other properties means and what options are available. |
Graphs are used to view simulation results. They are just rectangles on layer 2, some attributes specify it is a graph (the flags attribute, the X/Y range to display (x1, x2, y1, y2) the number of grid divisions (with axis labels) and subdivisions for X and Y (divx, subdivx, divy, subdivy) unit multipliers (unitx, unity), the simulation nodes to display (node="...") and the colors (if specified, color="...") there are some other attributes to specify the quality in pdf/svg exports (simulation data can contain 100000 points, I can not dump these as vector graphics, so graphs are rasterized). There is another box container that holds image data, just simple png images with data encoded as a text base64 attribute (image_data=".....") . These can be rendered easily ina browser, I think. these have these flags:
the unscaled optional modifier tells the image is placed scaled one to one in the xschem schematic and user can not scale it. Image containers are supposed to be used to place company logos and other small pictures. Do not expect any good performance by embedding a 16k UUUHD image ! Thes containers are compatible additions to the core xschem objects. if I load a schematic with graphs and images with an older xschem version it will just show empty grey rectangles , ignoring the attributes defined therein. In some cases I have placed an image of a schematic found may be in a datasheet or in a book with a low alpha value so it will be transparent, then set attribute lock=true (so it can not be moved / selected) and used the background to draw the xschem schematic on top of it. |
Also as a suggestion I think you can at least temporarily skip the |
Now it makes sense! Well, we just show grey rectangles instead of graphs. Do you think it's better just to hide them?
skip as in just replace them with an empty string? |
Yes, so you have less junk. These are really low priority, so keep a comment in thecode for future improvements. |
Alright, graphs hidden. Feel free to open a new issue for anything you find about rotated / mirrored symbols |
if I try to load this:
https://xschem-viewer.com/?file=https://github.com/StefanSchippers/xschem/blob/master/xschem_library/examples/mos_power_ampli.sch
get the following error:
Error loading https://github.com/StefanSchippers/xschem/blob/master/xschem_library/examples/mos_power_ampli.sch: SyntaxError: Expected "\"" or "\\\\" but "[" found.
expected is this:
The text was updated successfully, but these errors were encountered: