Refactors file management and enhances task tracking

Replaces duplicate file copy logic with a unified `copy_file` function to improve code reuse and maintainability. Updates step tracking across the toolchain to reflect a consistent 12-step workflow. Adds a new entry point (`xilinx_ise_all`) to streamline execution of the entire toolchain.

Improves logging by integrating enhanced console utilities for better step visualization and progress tracking.
This commit is contained in:
2025-04-26 16:18:38 +00:00
parent 90859715c4
commit 12d9f4b6c9
8 changed files with 77 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
from typing import Optional
from models.config import DIRECTORIES
from tools.xilinx_ise.common import copy_report_file, run_tool
from tools.xilinx_ise.common import copy_file, run_tool
from utils.source_resolver import expand_sources
from models.project import ProjectConfig
import subprocess
@@ -50,13 +50,14 @@ def run_xst(project: ProjectConfig):
project=project,
tool_executable_name="xst",
mandatory_arguments=["-ifn", f"{project.name}.scr",
], step_number=1, total_steps=6
], step_number=1, total_steps=12
)
def copy_synthesis_report(project: ProjectConfig):
copy_report_file(
copy_file(
project=project,
source_filename=f"{project.name}.srp",
destination_filename=f"{project.name}.SynthesisReport",
description="Synthesebericht"
description="Synthesebericht",
step_number=2, total_steps=12
)