From 52e7af8a5d0f583b3e24ebf3d6598fc02ee8f3ba Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 5 Jun 2022 19:09:15 -0700 Subject: [PATCH] Add combined TX/RX bus with all signals Signed-off-by: Alex Forencich --- tb/pcie_if.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tb/pcie_if.py b/tb/pcie_if.py index e6f17f346..2ed37cb6c 100644 --- a/tb/pcie_if.py +++ b/tb/pcie_if.py @@ -54,14 +54,23 @@ class BaseBus(Bus): return cls(entity, prefix, **kwargs) +class PcieIfBus(BaseBus): + _signals = ["hdr", "valid", "sop", "eop", "ready"] + _optional_signals = ["data", "strb", "error", "tlp_prfx", "vf_active", + "func_num", "vf_num", "data_par", "hdr_par", "tlp_prfx_par", + "seq", "bar_id", "tlp_abort"] + + class PcieIfTxBus(BaseBus): _signals = ["hdr", "valid", "sop", "eop", "ready"] - _optional_signals = ["data", "strb", "tlp_prfx", "data_par", "hdr_par", "tlp_prfx_par", "seq", "err"] + _optional_signals = ["data", "strb", "tlp_prfx", + "data_par", "hdr_par", "tlp_prfx_par", "seq"] class PcieIfRxBus(BaseBus): _signals = ["hdr", "valid", "sop", "eop", "ready"] - _optional_signals = ["data", "strb", "error", "tlp_prfx", "vf_active", "func_num", "vf_num", "data_par", "hdr_par", "tlp_prfx_par", "bar_id", "tlp_abort"] + _optional_signals = ["data", "strb", "error", "tlp_prfx", "vf_active", "func_num", "vf_num", + "data_par", "hdr_par", "tlp_prfx_par", "bar_id", "tlp_abort"] def dword_parity(d):