From: Luke Kenneth Casson Leighton Date: Mon, 10 Jun 2019 07:41:36 +0000 (+0100) Subject: add in a TestMemory class X-Git-Tag: div_pipeline~1860 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8feb26f6861f891021fdde1e03ecc4d8ee962a05;p=soc.git add in a TestMemory class --- diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index ea6765a5..e3b4d577 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 @@ -24,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<