{"id":20602429,"url":"https://github.com/augustunderground/pyal","last_synced_at":"2026-05-29T08:31:19.767Z","repository":{"id":216449956,"uuid":"741365029","full_name":"AugustUnderground/pyal","owner":"AugustUnderground","description":"Python parser for MCNC benchmark netlists","archived":false,"fork":false,"pushed_at":"2024-02-07T10:28:38.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-09T12:53:58.574Z","etag":null,"topics":["floorplanning","mcnc","placement","python","yal"],"latest_commit_sha":null,"homepage":"https://augustunderground.github.io/pyal","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AugustUnderground.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-10T08:43:07.000Z","updated_at":"2025-04-27T12:59:00.000Z","dependencies_parsed_at":"2024-01-18T10:55:45.878Z","dependency_job_id":"c246cc55-beb6-4774-be92-31db265d9f6d","html_url":"https://github.com/AugustUnderground/pyal","commit_stats":null,"previous_names":["augustunderground/pyal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AugustUnderground/pyal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustUnderground%2Fpyal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustUnderground%2Fpyal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustUnderground%2Fpyal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustUnderground%2Fpyal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AugustUnderground","download_url":"https://codeload.github.com/AugustUnderground/pyal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustUnderground%2Fpyal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["floorplanning","mcnc","placement","python","yal"],"created_at":"2024-11-16T09:13:51.048Z","updated_at":"2026-05-29T08:31:19.740Z","avatar_url":"https://github.com/AugustUnderground.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PYAL\n\nA quick and dirty parser for an even dirtier language. YAL is the language used\nto describe the\n[MCNC benchmark netlist circuits](https://s2.smu.edu/~manikas/Benchmarks/MCNC_Benchmark_Netlists.html).\nSee the\n[YAL documentation](https://s2.smu.edu/~manikas/Benchmarks/YalDescription.txt)\nfor further details.\n\n## Dependencies\n\n- `pyparsing`\n- `pyaml`\n\n## Usage\n\nThe `example/example.yal` is taken from the\n[YAL documentation](https://s2.smu.edu/~manikas/Benchmarks/YalDescription.txt).\n\nModule:\n\n```python\nimport yal\n\nmodules = yal.read('./example/example.yal')\n```\n\nSee the [API documentation](https://augustunderground.github.io/pyal/core.html)\nfor more information.\n\nCLI:\n\n```\n$ yal2yaml ./example/example.yal \u003e ./exmaple/example.yaml\n$ cat ./example/example.yal | yal2yaml \u003e ./example/example.yaml\n```\n\nIf the the set of `*.yal` files comprising the MCNC data set are in a folder\ncalled `mcnc` they can be converted to `*.yaml` like so:\n\n```sh\nfor y in ./mcnc/*.yal; do yal2yaml $y \u003e \"${y%.yal}.yaml\"; done\n```\n\n## Installation\n\nFrom git with pip:\n\n```\n$ pip install git+https://github.com/augustunderground/pyal.git\n```\n\nFrom source with pip:\n\n```\n$ git clone https://github.com/augustunderground/pyal.git\n$ cd pyal\n$ pip install . --use-feature=in-tree-build\n```\n\n## Grammar\n\nDue to the conflicting defintions of the YAL grammar a slightly revised version\nis used here:\n\n```\nmodulename    ::= [a-zA-Z0-9_]+ ;\nmoduletype    ::= \"STANDARD\" | \"PAD\" | \"GENERAL\" | \"PARENT\" | \"FEEDTHROUGH\" ;\nwidth         ::= [0-9]+ ;\nheight        ::= [0-9]+ ;\nsignalname    ::= [a-zA-Z0-9_]+ ;\nterminaltype  ::= \"I\" | \"O\" | \"B\" | \"PI\" | \"PO\" | \"PB\" | \"F\" | \"PWR\" | \"GND\" ;\nside          ::= \"BOTTOM\" | \"RIGHT\" | \"TOP\" | \"LEFT\" ;\nlayer         ::= \"PDIFF\" | \"NDIFF\" | \"POLY\" | \"METAL1\" | \"METAL2\" ;\nxposition     ::= -?[0-9]+ ;\nyposition     ::= -?[0-9]+ ;\nposition      ::= -?[0-9]+ ;\ninstancename  ::= [a-zA-Z0-9_]+ ;\nxlocation     ::= -?[0-9]+ ;\nylocation     ::= -?[0-9]+ ;\ncurrent       ::= -?[0-9]+(\\.[0-9]+)? ;\nvoltage       ::= -?[0-9]+(\\.[0-9]+)? ;\nmaximumlength ::= [0-9]+ ;\nreflection    ::= \"RFLNONE\" | \"RFLY\" ;\nrotation      ::= \"ROT0\" | \"ROT90\" | \"ROT180\" | \"ROT270\" ;\ndimension     ::= x y ;\ndimensions    ::= dimension+ ;\nx             ::= -?[0-9]+ ;\ny             ::= -?[0-9]+ ;\nio            ::= signalname terminaltype ( xposition yposition [ width layer ] \n                                          | side position [ width layer ] )\n                    [ \"CURRENT\" current ] [ \"VOLTAGE\" voltage ] ;\nios           ::= (io ';')+ ;\nnetwork       ::= instancename modulename signalname (net+) ;\nnetworks      ::= (network ';')+ ; \nnet           ::= [a-zA-Z0-9_]+ ;\nplacement     ::= instancename xlocation ylocation [reflection] [rotation] ;\nplacements    ::= (placement ';')+ ;\ncritnet       ::= signalname maximumlength ;\ncritnets      ::= (critnet ';')+ ;\nmodule        ::= 'MODULE' modulename ';'\n                    'TYPE' moduletype ';'\n                    'DIMENSIONS' dimensions ';'\n                    'IOLIST;'\n                        ios\n                    'ENDIOLIST;'\n                    'NETWORK'\n                        networks\n                    'ENDNETWORK;'\n                    ['PLACEMENT'\n                        placements\n                     'ENDPLACEMENT;']\n                    ['CRITICALNETS;'\n                        critnets\n                     'ENDCRITICALNETS;']\n                  'ENDMODULE;' ;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustunderground%2Fpyal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugustunderground%2Fpyal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustunderground%2Fpyal/lists"}