{"id":35121513,"url":"https://github.com/bugratufan/axion-hdl","last_synced_at":"2026-06-10T10:00:27.597Z","repository":{"id":327468147,"uuid":"1109427278","full_name":"bugratufan/axion-hdl","owner":"bugratufan","description":"Axion-HDL: Automated AXI Register Space Generation Tool","archived":false,"fork":false,"pushed_at":"2026-06-10T08:08:50.000Z","size":3390,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-06-10T08:12:05.343Z","etag":null,"topics":["axi","axi4-lite","register","vhdl"],"latest_commit_sha":null,"homepage":"https://axion-hdl.com","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/bugratufan.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-03T19:40:11.000Z","updated_at":"2026-06-10T08:04:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bugratufan/axion-hdl","commit_stats":null,"previous_names":["bugratufan/axion-hdl"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/bugratufan/axion-hdl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugratufan%2Faxion-hdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugratufan%2Faxion-hdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugratufan%2Faxion-hdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugratufan%2Faxion-hdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugratufan","download_url":"https://codeload.github.com/bugratufan/axion-hdl/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugratufan%2Faxion-hdl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146870,"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-06-10T02:00:07.152Z","response_time":89,"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":["axi","axi4-lite","register","vhdl"],"created_at":"2025-12-28T00:04:38.764Z","updated_at":"2026-06-10T10:00:27.352Z","avatar_url":"https://github.com/bugratufan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axion-HDL\n\n**AXI4-Lite register interfaces from VHDL, SystemVerilog, YAML, TOML, XML, or JSON. One command.**\n\n[![PyPI](https://img.shields.io/pypi/v/axion-hdl.svg)](https://pypi.org/project/axion-hdl/)\n[![Tests](https://github.com/bugratufan/axion-hdl/actions/workflows/tests.yml/badge.svg)](https://github.com/bugratufan/axion-hdl/actions/workflows/tests.yml)\n[![Docs](https://readthedocs.org/projects/axion-hdl/badge/?version=stable)](https://axion-hdl.readthedocs.io/en/stable/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n---\n\n## Install\n\n**For users:**\n```bash\npip install axion-hdl\n```\n\n**For development:**\n```bash\ngit clone https://github.com/bugratufan/axion-hdl.git\ncd axion-hdl\npython3 -m venv venv\nsource venv/bin/activate\npip install -e \".[dev]\"  # Includes pytest, cocotb, etc.\n```\n\n## Use\n\n```bash\n# From VHDL with @axion annotations\naxion-hdl -s my_module.vhd -o output/\n\n# From SystemVerilog with @axion annotations\naxion-hdl -s my_module.sv -o output/\n\n# From YAML/TOML/XML/JSON\naxion-hdl -s registers.yaml -o output/\naxion-hdl -s registers.toml -o output/\n```\n\n**Output:** VHDL/SystemVerilog modules, C headers, documentation, YAML/TOML/XML/JSON exports.\n\n## Define Registers\n\n**VHDL** — embed in your code:\n```vhdl\n-- @axion_def BASE_ADDR=0x1000 CDC_EN\nsignal status  : std_logic_vector(31 downto 0); -- @axion RO\nsignal control : std_logic_vector(31 downto 0); -- @axion RW W_STROBE\n```\n\n**SystemVerilog** — same annotations, different syntax:\n```systemverilog\n// @axion_def BASE_ADDR=0x1000 CDC_EN\nlogic [31:0] status;  // @axion RO\nlogic [31:0] control; // @axion RW W_STROBE\n```\n\n**YAML** — standalone file:\n```yaml\nmodule: my_module\nbase_addr: \"0x1000\"\nconfig:\n  cdc_en: true\nregisters:\n  - name: status\n    access: RO\n  - name: control\n    access: RW\n    w_strobe: true\n```\n\n**TOML** — clean, readable syntax:\n```toml\nmodule = \"spi_master\"\nbase_addr = \"0x0000\"\n\n[config]\ncdc_en = true\ncdc_stage = 2\n\n[[registers]]\nname = \"control\"\naddr = \"0x00\"\naccess = \"RW\"\nw_strobe = true\ndescription = \"SPI control register\"\n\n[[registers]]\nname = \"status\"\naddr = \"0x04\"\naccess = \"RO\"\nr_strobe = true\ndescription = \"SPI status register\"\n```\n\n**Output** — one command:\n```bash\naxion-hdl -s spi_master.toml -o output --all\n```\n\nGenerates: VHDL + SystemVerilog modules, C header, HTML docs, YAML/TOML/XML/JSON exports\n\n## Features\n\n- **Multi-format input** — VHDL/SystemVerilog annotations, YAML, TOML, XML, JSON\n- **Multi-HDL output** — Generate both VHDL and SystemVerilog register interfaces\n- **CDC support** — built-in clock domain crossing synchronizers\n- **Subregisters** — pack multiple fields into one address\n- **Wide signals** — auto-split 64-bit+ signals across addresses\n- **Tested** — 307+ tests, GHDL simulation verified\n\n## Documentation\n\n📖 **[axion-hdl.readthedocs.io](https://axion-hdl.readthedocs.io/en/stable/)**\n\n## Development \u0026 Testing\n\n**Quick start:**\n```bash\ngit clone https://github.com/bugratufan/axion-hdl.git\ncd axion-hdl\nmake test  # Auto-installs dependencies and runs all tests\n```\n\nThe `make test` command automatically:\n- Creates a virtual environment if needed\n- Installs all test dependencies\n- Runs 307+ tests (Python + VHDL + cocotb)\n\n\u003e **Note:** For SystemVerilog linting tests, `verilator` must be installed on your system (`sudo apt install verilator`) for `make test` to pass.\n\n**Manual setup (optional):**\n```bash\nmake setup-dev  # Create venv + install dependencies\nsource venv/bin/activate\n```\n\n**CI/Automated environments:**\n```bash\nAXION_AUTO_INSTALL=1 make test  # Skip prompt, auto-install\n```\n\n**Contributing:**\n```bash\ngit checkout develop\ngit checkout -b feature/your-feature\n# Make changes\nmake test  # Dependencies auto-installed on first run\n# Submit PR to develop branch\n```\n\n## License\n\nMIT — [Bugra Tufan](mailto:bugratufan97@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugratufan%2Faxion-hdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugratufan%2Faxion-hdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugratufan%2Faxion-hdl/lists"}