X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fexperiment%2Fscore6600.py;h=78ea09748ef66fca8a1c0d3d68b7fd7fb1c6ebc4;hb=c4a50df3d7f89890d9e6120de4448e4883efbc7b;hp=47101d1e90f68b6ab4fa15308a53349bcf1c0ad8;hpb=b7bf7a2a8d87f206cbbad676f889562c4ed4ec0f;p=soc.git diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index 47101d1e..78ea0974 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<