From: Luke Kenneth Casson Leighton Date: Sun, 2 Jun 2019 12:24:46 +0000 (+0100) Subject: add MemSim, remove redundant signal X-Git-Tag: div_pipeline~1909 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55f611806164b5b125ddcfa4732ec8c2d735e561;p=soc.git add MemSim, remove redundant signal --- diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index 4c55e0bd..dd48f2d5 100644 --- a/src/experiment/score6600.py +++ b/src/experiment/score6600.py @@ -24,7 +24,8 @@ from math import log class Memory(Elaboratable): def __init__(self, regwid, addrw): - depth = (1<>self.ddepth] + + def st(self, addr, data): + self.mem[addr>>self.ddepth] = data & ((1<