Skip to content

Commit

Permalink
VPR: Fix typos, add edam structure into tool
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Comodi <[email protected]>
  • Loading branch information
Mateusz Kosmala authored and acomodi committed Feb 4, 2022
1 parent 6bed40d commit 2af2816
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
3 changes: 0 additions & 3 deletions edalize/flows/vpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class Vpr(Edaflow):

FLOW_OPTIONS = {}

def __init__(self, edam, work_root, verbose=False):
Edaflow.__init__(self, edam, work_root, verbose)

def build_tool_graph(self):
return super().build_tool_graph()

Expand Down
7 changes: 6 additions & 1 deletion edalize/tools/vpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Vpr(Edatool):
"""
VPR tool Backend
The VTR backend performs Packing, Placement, Routing & Timing Analysis.
The VPR backend performs Packing, Placement, Routing & Timing Analysis.
"""

Expand Down Expand Up @@ -114,6 +114,11 @@ def configure(self, edam):
command += sdc_opts + vpr_options
commands.add(command, [targets], [depends])

for ext in [".net", ".place", ".route", ".analysis"]:
self.edam["files"].append(
{"name": self.name + str(ext), "file_type": "vpr_" + str(ext[1:])}
)

self.commands = commands.commands
commands.set_default_target(targets)
commands.write(os.path.join(self.work_root, "Makefile"))
Expand Down
11 changes: 2 additions & 9 deletions edalize/vpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Vpr(Edatool):
"""
VPR tool Backend
The VTR backend performs Packing, Placement, Routing & Timing Analysis.
The VPR backend performs Packing, Placement, Routing & Timing Analysis.
VPR is an open source academic CAD tool designed for the exploration of new FPGA architectures and CAD algorithms, at the packing, placement and routing phases of the CAD flow
"""
Expand All @@ -27,14 +27,7 @@ class Vpr(Edatool):
def get_doc(cls, api_ver):
if api_ver == 0:
return {
"description": "The VTR backend performs Packing, Placement, Routing & Timing Analysis.",
"lists": [
{
"name": "board_repo_paths",
"type": "String",
"desc": "Board repository paths. A list of paths to search for board files.",
},
],
"description": "The VPR backend performs Packing, Placement, Routing & Timing Analysis.",
"members": [
{
"name": "arch_xml",
Expand Down

0 comments on commit 2af2816

Please sign in to comment.