summaryrefslogtreecommitdiff
path: root/rtl/fpu/mod.mk
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-04-27 11:45:23 -0600
committerAlejandro Soto <alejandro@34project.org>2024-04-27 11:45:23 -0600
commit45b5eabe868ac2f8a755379bde07c102caf74afb (patch)
tree7b740cbc6b19b46d731e29ee145c2a8ad744e847 /rtl/fpu/mod.mk
parenta61ee4b16157f3c6501d958b8dcde7f57f41110d (diff)
rtl/fpu: initial commit
Imported from https://github.com/taneroksuz/fpu-sp
Diffstat (limited to 'rtl/fpu/mod.mk')
-rw-r--r--rtl/fpu/mod.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/rtl/fpu/mod.mk b/rtl/fpu/mod.mk
new file mode 100644
index 0000000..606c32c
--- /dev/null
+++ b/rtl/fpu/mod.mk
@@ -0,0 +1,15 @@
+cores := fp_unit fp_lzc
+
+define core/fp_lzc
+ $(this)/rtl_dirs := lzc
+ $(this)/rtl_files := lzc/lzc_wire.sv
+endef
+
+define core/fp_unit
+ $(this)/deps := fp_lzc
+
+ $(this)/vl_main := empty.cpp
+ $(this)/rtl_top := fp_unit
+ $(this)/rtl_dirs := float
+ $(this)/rtl_files := float/fp_wire.sv float/fp_unit.sv
+endef