add example buffered pipe
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Mar 2019 13:14:17 +0000 (13:14 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Mar 2019 13:14:17 +0000 (13:14 +0000)
src/add/example_buf_pipe.py

index 20e91e4e877948f72000b5ac789b053f82d21f4d..aedf8dceffa5e02d056ff18d5e18a9f00105eb9a 100644 (file)
@@ -1,3 +1,6 @@
+""" nmigen implementation of buffered pipeline stage, based on zipcpu:
+    https://zipcpu.com/blog/2017/08/14/strategies-for-pipelining.html
+"""
 from nmigen import Signal, Cat, Const, Mux, Module
 from nmigen.compat.sim import run_simulation
 from nmigen.cli import verilog, rtlil