cpu/microwatt: reorder sources, add comments

This commit is contained in:
Florent Kermarrec 2020-01-03 15:29:10 +01:00
parent e36df2a6fb
commit 690de79d8b
1 changed files with 35 additions and 17 deletions

View File

@ -100,38 +100,56 @@ class Microwatt(CPU):
def add_sources(platform): def add_sources(platform):
sdir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "sources") sdir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "sources")
platform.add_sources(sdir, platform.add_sources(sdir,
# Common / Types / Helpers
"decode_types.vhdl", "decode_types.vhdl",
"wishbone_types.vhdl", "wishbone_types.vhdl",
"utils.vhdl",
"common.vhdl", "common.vhdl",
"helpers.vhdl",
# Fetch
"fetch1.vhdl", "fetch1.vhdl",
"fetch2.vhdl", "fetch2.vhdl",
# Instruction/Data Cache
"cache_ram.vhdl",
"plru.vhdl",
"dcache.vhdl",
"icache.vhdl",
# Decode
"insn_helpers.vhdl",
"decode1.vhdl", "decode1.vhdl",
"helpers.vhdl",
"decode2.vhdl",
"register_file.vhdl",
"cr_file.vhdl",
"crhelpers.vhdl",
"ppc_fx_insns.vhdl",
"sim_console.vhdl",
"logical.vhdl",
"countzero.vhdl",
"gpr_hazard.vhdl", "gpr_hazard.vhdl",
"cr_hazard.vhdl", "cr_hazard.vhdl",
"control.vhdl", "control.vhdl",
"decode2.vhdl",
# Register/CR File
"register_file.vhdl",
"crhelpers.vhdl",
"cr_file.vhdl",
# Execute
"ppc_fx_insns.vhdl",
"logical.vhdl",
"rotator.vhdl",
"countzero.vhdl",
"execute1.vhdl", "execute1.vhdl",
# Load/Store
"loadstore1.vhdl", "loadstore1.vhdl",
"dcache.vhdl",
# Multiply/Divide
"multiply.vhdl", "multiply.vhdl",
"divider.vhdl", "divider.vhdl",
"rotator.vhdl",
# Writeback
"writeback.vhdl", "writeback.vhdl",
"insn_helpers.vhdl",
"core.vhdl", # Core
"icache.vhdl",
"plru.vhdl",
"cache_ram.vhdl",
"core_debug.vhdl", "core_debug.vhdl",
"utils.vhdl" "core.vhdl",
) )
platform.add_source(os.path.join(sdir, "..", "microwatt_wrapper.vhdl")) platform.add_source(os.path.join(sdir, "..", "microwatt_wrapper.vhdl"))