Skip to content

Commit

Permalink
Add SnitchSim to Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Aug 10, 2024
1 parent aa778a7 commit dd6243a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions util/sim/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2024 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# Luca Colagrande <[email protected]>

from .SnitchSim import SnitchSim

__all__ = ['SnitchSim']
8 changes: 3 additions & 5 deletions util/sim/verif_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
"""Convenience functions and classes for verification scripts."""


import sys
import argparse
import numpy as np
import csv
from snitch.util.sim.Elf import Elf
from pathlib import Path
from snitch.util.sim.data_utils import flatten, from_buffer

sys.path.append(str(Path(__file__).parent / '../../target/common/test/'))
from SnitchSim import SnitchSim # noqa: E402
from snitch.util.sim.Elf import Elf
from snitch.util.sim.data_utils import flatten, from_buffer
from snitch.util.sim import SnitchSim


def dump_results_to_csv(expected_results, actual_results, error, max_error, path):
Expand Down

0 comments on commit dd6243a

Please sign in to comment.