From 0b1c8d4a416274489ed6f41c4b96d97baf9a024f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 3 Jun 2020 18:29:34 +0100 Subject: [PATCH] add a simple core, not intended for production use --- src/soc/fu/compunits/compunits.py | 1 + src/soc/simple/core.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 src/soc/simple/core.py diff --git a/src/soc/fu/compunits/compunits.py b/src/soc/fu/compunits/compunits.py index 5f8ea2bd..c8e4a2bc 100644 --- a/src/soc/fu/compunits/compunits.py +++ b/src/soc/fu/compunits/compunits.py @@ -151,6 +151,7 @@ class AllFunctionUnits(Elaboratable): def ports(self): return list(self) + def tst_single_fus_il(): for (name, kls) in (('alu', ALUFunctionUnit), ('cr', CRFunctionUnit), diff --git a/src/soc/simple/core.py b/src/soc/simple/core.py new file mode 100644 index 00000000..ea26a0fe --- /dev/null +++ b/src/soc/simple/core.py @@ -0,0 +1,4 @@ +from nmigen import Elaboratable, Module + +from soc.fu.compunits.compunits import AllFunctionUnits +from soc.regfile.regfiles import RegFiles -- 2.30.2