summaryrefslogtreecommitdiffstats
path: root/content/zettel/5a2b.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/zettel/5a2b.md')
-rw-r--r--content/zettel/5a2b.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/content/zettel/5a2b.md b/content/zettel/5a2b.md
new file mode 100644
index 0000000..4bde16c
--- /dev/null
+++ b/content/zettel/5a2b.md
@@ -0,0 +1,25 @@
++++
+title = "Travelling CE"
+author = "Yann Herklotz"
+tags = []
+categories = []
+backlinks = ["5a2a"]
+forwardlinks = ["5a2c"]
+zettelid = "5a2b"
++++
+
+One solution to the requirement of constant rate of the input data, is
+to have a travelling enable signal that sets each stage to be true
+sequentially. This can be formulated as the following:
+
+``` verilog
+initial o_ce = 1'b0;
+always @(posedge i_clk)
+ if (i_reset)
+ o_ce <= 1'b0;
+ else
+ o_ce <= i_ce;
+always @(posedge i_clk)
+ if (i_ce)
+ o_output <= $func(i_input);
+```