aboutsummaryrefslogtreecommitdiff
path: root/fpga/src/Clock.bs
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-10-08 21:33:12 -0500
committerNathan Ringo <nathan@remexre.com>2024-10-08 21:33:12 -0500
commitddf01d51c3429c25a57077d93d3309ce0e5d2262 (patch)
treeba8fa87bd190adfd02ff54092dbb57791bb7218e /fpga/src/Clock.bs
parent08d727e9886cde6a367906999e96a33f7ba37f33 (diff)
Preparation to start using separate clock domains.
Diffstat (limited to 'fpga/src/Clock.bs')
-rw-r--r--fpga/src/Clock.bs19
1 files changed, 0 insertions, 19 deletions
diff --git a/fpga/src/Clock.bs b/fpga/src/Clock.bs
deleted file mode 100644
index c908502..0000000
--- a/fpga/src/Clock.bs
+++ /dev/null
@@ -1,19 +0,0 @@
--- | A simple clock package.
-package Clock where
-
-interface Clock =
- clk :: Bool
-
--- TODO: Make a multiclock that uses one count for all the sub-clocks in the
--- design.
-
-mkClock :: Bit n -> Module Clock
-mkClock divisor =
- module
- count :: Reg (Bit n) <- mkReg 0
- rules
- when True ==> count := if count == divisor - 1 then 0 else count + 1
- interface Clock
- clk = count == 0
-
--- vim: set ft=haskell :