diff options
| author | Adam Izraelevitz | 2019-07-31 08:46:32 -0700 |
|---|---|---|
| committer | edwardcwang | 2019-08-01 00:12:45 +0800 |
| commit | 9a259303f684091c3bc313d47c6727af2f4da6aa (patch) | |
| tree | fa4e347a2d6cb77abc85e05f613bcf27ec1d8664 /README.md | |
| parent | ce962fc70241ff3d97aa92ec51fcafec7dc369c0 (diff) | |
Fix shift register in README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ class FirFilter(bitWidth: Int, coeffs: Seq[UInt]) extends Module { val out = Output(UInt(bitWidth.W)) }) // Create the serial-in, parallel-out shift register - val zs = Wire(Vec(coeffs.length, UInt(bitWidth.W))) + val zs = Reg(Vec(coeffs.length, UInt(bitWidth.W))) zs(0) := io.in for (i <- 1 until coeffs.length) { zs(i) := zs(i-1) |
