Add project configuration and build tools
- Introduced new scripts for project generation and synthesis (dodo.py, generate_prj.py, generate_scr.py, run_xst.py). - Implemented configuration parsing for VHDL sources and project settings (config.py). - Added default configuration values (defaults.py). - Updated .gitignore to include additional file types. - Created test cases for project generation and configuration parsing (test_generate_prj.py, test_generate_scr.py, test_project_cfg.py).
This commit is contained in:
21
tools/paths.py
Normal file
21
tools/paths.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
# Ermittle absoluten Pfad dieser Datei
|
||||
HERE = Path(__file__).resolve()
|
||||
|
||||
# Gehe zurück von tools/ → build/ → Projekt-Root
|
||||
ROOT = HERE.parent.parent.parent
|
||||
|
||||
# Abgeleitete Pfade
|
||||
BUILD = ROOT / "build"
|
||||
WORKING = BUILD / "working"
|
||||
REPORTS = BUILD / "reports"
|
||||
|
||||
# Relativer Pfad von WORKING zurück zur Projektwurzel
|
||||
REL_FROM_WORKING_TO_ROOT = Path(os.path.relpath(ROOT, WORKING))
|
||||
|
||||
# Standard-Konfigurationsdateien
|
||||
PROJECT_CFG = ROOT / "project.cfg"
|
||||
VHDL_LS_TOML = ROOT / "vhdl_ls.toml"
|
Reference in New Issue
Block a user