Files
hdlbuild/src/hdlbuild/tools/xilinx_ise/trace.py
Max P 28406028c6 Refactors project structure for modularity
Renames and reorganizes modules under a new 'hdlbuild' namespace for improved clarity and maintainability. Updates import paths across the codebase to reflect the new structure.

No logic changes introduced.
2025-04-26 18:52:44 +00:00

28 lines
809 B
Python

import subprocess
import os
import shutil
from typing import Optional
from hdlbuild.models.project import ProjectConfig
from hdlbuild.models.config import DIRECTORIES
from hdlbuild.tools.xilinx_ise.common import copy_file, run_tool
def run_trace(project: ProjectConfig):
run_tool(
project=project,
tool_executable_name="trce",
tool_option_attr="trace",
mandatory_arguments=[
f"{project.name}.ncd",
f"{project.name}.pcf",
], step_number=11, total_steps=12
)
def copy_trace_report(project: ProjectConfig):
copy_file(
project=project,
source_filename=f"{project.name}.twr",
destination_filename=f"{project.name}.TimingReport",
description="Timing Report",
step_number=12, total_steps=12
)