X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fexperiment%2Fscore6600.py;h=7c66f208c52d2f72828450564ef129e1ed299e95;hb=6018a7294c563e094e88583dc6d8558103d529e4;hp=997dab070ff6284e7ef0267f94263afb1aaab18c;hpb=59e8ebe221caeb9abe693d6b0745b818574710fe;p=soc.git diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index 997dab07..7c66f208 100644 --- a/src/experiment/score6600.py +++ b/src/experiment/score6600.py @@ -7,32 +7,101 @@ from scoreboard.fu_fu_matrix import FUFUDepMatrix from scoreboard.fu_reg_matrix import FURegDepMatrix from scoreboard.global_pending import GlobalPending from scoreboard.group_picker import GroupPicker -from scoreboard.issue_unit import IntFPIssueUnit, RegDecode +from scoreboard.issue_unit import IssueUnitGroup, IssueUnitArray, RegDecode from scoreboard.shadow import ShadowMatrix, BranchSpeculationRecord +from scoreboard.instruction_q import Instruction, InstructionQ from compalu import ComputationUnitNoDelay from alu_hier import ALU, BranchALU from nmutil.latch import SRLatch +from nmutil.nmoperator import eq from random import randint, seed from copy import deepcopy +from math import log -class CompUnits(Elaboratable): +class Memory(Elaboratable): + def __init__(self, regwid, addrw): + self.ddepth = regwid/8 + depth = (1<>self.ddepth] + def st(self, addr, data): + self.mem[addr>>self.ddepth] = data & ((1<