Skip to content
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

add gdsfactory #411

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion packages/teroshdl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
"language": "ucf",
"scopeName": "source.ucfconstraints",
"path": "./syntaxes/ucf.tmLanguage"
},
{
"language": "picyml",
"scopeName": "source.yaml",
"path": "./syntaxes/yaml.tmLanguage.json"
}
],
"menus": {
Expand Down Expand Up @@ -586,6 +591,14 @@
{
"language": "systemverilog",
"path": "./snippets/verilog/verilog.json"
},
{
"language": "picyml",
"path": "./snippets/yaml/snippet.json"
},
{
"language": "python",
"path": "./snippets/python_snippets.json"
}
],

Expand Down Expand Up @@ -643,4 +656,4 @@
"shx": "^0.3.3"
}

}
}
1 change: 1 addition & 0 deletions packages/teroshdl/schemas/netlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "NetlistModel", "description": "Netlist defined component.\n\nAttributes:\n instances: dict of instances (name, settings, component).\n placements: dict of placements.\n connections: dict of connections.\n routes: dict of routes.\n name: component name.\n info: information (polarization, wavelength ...).\n settings: input variables.\n pdk: pdk module name.\n ports: exposed component ports.", "type": "object", "properties": {"instances": {"title": "Instances", "type": "object", "additionalProperties": {"$ref": "#/definitions/ComponentModel"}}, "placements": {"title": "Placements", "type": "object", "additionalProperties": {"$ref": "#/definitions/PlacementModel"}}, "connections": {"title": "Connections", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string"}}}, "routes": {"title": "Routes", "type": "object", "additionalProperties": {"$ref": "#/definitions/RouteModel"}}, "name": {"title": "Name", "type": "string"}, "info": {"title": "Info", "type": "object"}, "settings": {"title": "Settings", "type": "object"}, "pdk": {"title": "Pdk", "type": "string"}, "ports": {"title": "Ports", "type": "object", "additionalProperties": {"type": "string"}}}, "required": ["instances"], "additionalProperties": false, "definitions": {"ComponentModel": {"title": "ComponentModel", "type": "object", "properties": {"component": {"title": "Component", "anyOf": [{"type": "string"}, {"type": "object"}]}, "settings": {"title": "Settings", "type": "object"}}, "required": ["component"], "additionalProperties": false}, "PlacementModel": {"title": "PlacementModel", "type": "object", "properties": {"x": {"title": "X", "default": 0, "anyOf": [{"type": "string"}, {"type": "number"}]}, "y": {"title": "Y", "default": 0, "anyOf": [{"type": "string"}, {"type": "number"}]}, "xmin": {"title": "Xmin", "anyOf": [{"type": "string"}, {"type": "number"}]}, "ymin": {"title": "Ymin", "anyOf": [{"type": "string"}, {"type": "number"}]}, "xmax": {"title": "Xmax", "anyOf": [{"type": "string"}, {"type": "number"}]}, "ymax": {"title": "Ymax", "anyOf": [{"type": "string"}, {"type": "number"}]}, "dx": {"title": "Dx", "default": 0, "type": "number"}, "dy": {"title": "Dy", "default": 0, "type": "number"}, "port": {"title": "Port", "anyOf": [{"type": "string"}, {"enum": ["ce", "cw", "nc", "ne", "nw", "sc", "se", "sw", "center", "cc"], "type": "string"}]}, "rotation": {"title": "Rotation", "default": 0, "type": "integer"}, "mirror": {"title": "Mirror", "default": false, "type": "boolean"}}, "additionalProperties": false}, "RouteModel": {"title": "RouteModel", "type": "object", "properties": {"links": {"title": "Links", "type": "object", "additionalProperties": {"type": "string"}}, "settings": {"title": "Settings", "type": "object"}, "routing_strategy": {"title": "Routing Strategy", "type": "string"}}, "required": ["links"], "additionalProperties": false}}}
Loading