From 8e37e1fb36bc8c5e0493ece159aeeb9095bc9c8f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 8 Jun 2019 07:37:57 +0100 Subject: [PATCH] add fu-mem dependency cell based on fu_dep_cell.py --- src/scoreboard/fumem_dep_cell.py | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/scoreboard/fumem_dep_cell.py diff --git a/src/scoreboard/fumem_dep_cell.py b/src/scoreboard/fumem_dep_cell.py new file mode 100644 index 00000000..982b55a3 --- /dev/null +++ b/src/scoreboard/fumem_dep_cell.py @@ -0,0 +1,92 @@ +from nmigen.compat.sim import run_simulation +from nmigen.cli import verilog, rtlil +from nmigen import Module, Signal, Const, Elaboratable +from nmutil.latch import SRLatch + + +class FUMemDependenceCell(Elaboratable): + """ implements 11.4.7 mitch alsup dependence cell, p27 + """ + def __init__(self, dummy, n_fu=1): + self.n_fu = n_fu + self.dummy = Const(~(1<