This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'schwarz-MVB_HASH_TABLE_SIMPLE_cocotb_Logic_Array' into …
…'main' Nahrazení vlastní utility binary utils za LogicArray z cocotb.types v konfiguračním skriptu pro MVB_HASH_TABLE_SIMPLE a oprava stylu pomocí flake8 See merge request ndk/ofm!408
- Loading branch information
Showing
5 changed files
with
88 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
comp/mvb_tools/storage/mvb_hash_table_simple/cocotb/drivers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# drivers.py: Specialzed MVBDriver for MVB_HASH_TABLE_SIMPLE | ||
# Copyright (C) 2024 CESNET z. s. p. o. | ||
# Author(s): Ondřej Schwarz <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from cocotbext.ofm.mvb.drivers import MVBDriver | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# monitors.py: Specialzed MVBMonitor for MVB_HASH_TABLE_SIMPLE | ||
# Copyright (C) 2024 CESNET z. s. p. o. | ||
# Author(s): Ondřej Schwarz <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from cocotbext.ofm.mvb.monitors import MVBMonitor | ||
|
||
|
||
|
@@ -11,6 +17,6 @@ def receive_data(self, data, offset): | |
self.log.debug(f"MATCH: {match_val}") | ||
|
||
if match_val[offset] == 1: | ||
self._recv((data[offset*self._item_width:(offset+1)*self._item_width], 1)) # k match signalu pridat offset | ||
self._recv((data[offset*self._item_width:(offset+1)*self._item_width], 1)) | ||
else: | ||
self._recv((self._item_width * b'\x00', 0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.