Skip to content

Commit

Permalink
apio sim refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 17, 2024
1 parent 9ca523a commit 2274982
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apio/commands/sim.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
# -- This file is part of the Apio project
# -- (C) 2016-2019 FPGAwars
# -- Author Jesús Arroyo
# -- (C) 2016-2024 FPGAwars
# -- Authors
# -- * Jesús Arroyo (2016-2019)
# -- * Juan Gonzalez (obijuan) (2019-2024)
# -- Licence GPLv2
"""TODO"""
"""Main implementation of APIO SIM command"""

import click
from apio.managers.scons import SCons
Expand All @@ -29,5 +31,11 @@
def cli(ctx, project_dir, testbench):
"""Launch the verilog simulation."""

exit_code = SCons(project_dir).sim({"testbench": testbench})
# -- Create the scons object
scons = SCons(project_dir)

# -- Simulate the project with the given parameters
exit_code = scons.sim({"testbench": testbench})

# -- Done!
ctx.exit(exit_code)

0 comments on commit 2274982

Please sign in to comment.