Skip to content

Commit

Permalink
tlp/common: Add Configuration Read/Write Type0 fmt/type infos.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 27, 2023
1 parent 3728778 commit 2ea95e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion litepcie/tlp/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This file is part of LitePCIe.
#
# Copyright (c) 2015-2022 Florent Kermarrec <florent@enjoy-digital.fr>
# Copyright (c) 2015-2023 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause

from migen import *
Expand All @@ -20,6 +20,8 @@
"mem_wr64": 0b11,
"cpld": 0b10,
"cpl": 0b00,
"cfg_rd0": 0b00,
"cfg_wr0": 0b10,
}

type_dict = {
Expand All @@ -29,6 +31,8 @@
"mem_wr64": 0b00000,
"cpld": 0b01010,
"cpl": 0b01010,
"cfg_rd0": 0b00101,
"cfg_wr0": 0b00101,
}

fmt_type_dict = {
Expand All @@ -38,6 +42,8 @@
"mem_wr64": 0b11_00000,
"cpld": 0b10_01010,
"cpl": 0b00_01010,
"cfg_rd0": 0b00_00101,
"cfg_wr0": 0b10_00101,
}

cpl_dict = {
Expand Down

0 comments on commit 2ea95e8

Please sign in to comment.