From: Luke Kenneth Casson Leighton Date: Sat, 8 Jun 2019 06:37:57 +0000 (+0100) Subject: add fu-mem dependency cell based on fu_dep_cell.py X-Git-Tag: div_pipeline~1882 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e37e1fb36bc8c5e0493ece159aeeb9095bc9c8f;p=soc.git add fu-mem dependency cell based on fu_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<