X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fexperiment%2Fscore6600.py;h=ccb26c1c516ad5b24391e440a954a8e0bb3c0c7b;hb=cdfffd55cf53cd4a18ffadedb927129393abf089;hp=dd48f2d5bec4de653c3290002d869167c2645013;hpb=55f611806164b5b125ddcfa4732ec8c2d735e561;p=soc.git diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index dd48f2d5..ccb26c1c 100644 --- a/src/experiment/score6600.py +++ b/src/experiment/score6600.py @@ -1,6 +1,6 @@ from nmigen.compat.sim import run_simulation from nmigen.cli import verilog, rtlil -from nmigen import Module, Const, Signal, Array, Cat, Elaboratable +from nmigen import Module, Const, Signal, Array, Cat, Elaboratable, Memory from regfile.regfile import RegFileArray, treereduce from scoreboard.fu_fu_matrix import FUFUDepMatrix @@ -10,8 +10,10 @@ from scoreboard.group_picker import GroupPicker from scoreboard.issue_unit import IssueUnitGroup, IssueUnitArray, RegDecode from scoreboard.shadow import ShadowMatrix, BranchSpeculationRecord from scoreboard.instruction_q import Instruction, InstructionQ +from scoreboard.memfu import MemFunctionUnits from compalu import ComputationUnitNoDelay +from compldst import LDSTCompUnit from alu_hier import ALU, BranchALU from nmutil.latch import SRLatch @@ -22,10 +24,10 @@ from copy import deepcopy from math import log -class Memory(Elaboratable): +class TestMemory(Elaboratable): def __init__(self, regwid, addrw): - self.ddepth = regwid/8 - depth = (1<