From ec50ef00fa78fe08140b58c9ee09d8465c207386 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Sat, 13 Jan 2024 13:42:47 +0100 Subject: [PATCH] Replace * imports by selective ones --- pyuvm_tests/VaiBfm.py | 2 +- pyuvm_tests/tb_aes.py | 27 ++++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/pyuvm_tests/VaiBfm.py b/pyuvm_tests/VaiBfm.py index 729bd54..e64ea14 100644 --- a/pyuvm_tests/VaiBfm.py +++ b/pyuvm_tests/VaiBfm.py @@ -1,5 +1,5 @@ import cocotb -from cocotb.triggers import FallingEdge, RisingEdge, Timer +from cocotb.triggers import RisingEdge, Timer from cocotb.queue import QueueEmpty, Queue from cocotb.clock import Clock import logging diff --git a/pyuvm_tests/tb_aes.py b/pyuvm_tests/tb_aes.py index 35a0afb..4d65191 100644 --- a/pyuvm_tests/tb_aes.py +++ b/pyuvm_tests/tb_aes.py @@ -1,14 +1,27 @@ -from cocotb.queue import Queue -from cocotb.triggers import RisingEdge, Timer, Combine -from pyuvm import * -import cocotb -import pyuvm -import vsc +from cocotb.triggers import Combine +from pyuvm import ( + uvm_test, + uvm_sequence, + uvm_sequence_item, + uvm_sequencer, + uvm_driver, + uvm_component, + uvm_subscriber, + uvm_env, + uvm_factory, + uvm_analysis_port, + uvm_tlm_analysis_fifo, + uvm_get_port, + ConfigDB, + UVMConfigItemNotFound, +) from vsc import get_coverage_report from VaiBfm import VaiBfm, Mode from Coverage import constraints, covergroup from Crypto.Cipher import AES - +import cocotb +import pyuvm +import vsc @pyuvm.test()