diff options
author | Jon Nordby <jononor@gmail.com> | 2025-08-12 22:33:24 +0200 |
---|---|---|
committer | Jon Nordby <jononor@gmail.com> | 2025-08-12 22:33:24 +0200 |
commit | c678f642a0c04e18ead6e5761596de11a2f5735c (patch) | |
tree | 10fc98238b3a182e813b72fa0273fd7a974d1fab /bindings/sim_cic3_pdm.cc | |
parent | 8d99873204a6f5867931a4989c6ee4c3d0d358fd (diff) |
pdm: Make sure to reset before starting
Diffstat (limited to 'bindings/sim_cic3_pdm.cc')
-rw-r--r-- | bindings/sim_cic3_pdm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/sim_cic3_pdm.cc b/bindings/sim_cic3_pdm.cc index d5366b8..323b2dd 100644 --- a/bindings/sim_cic3_pdm.cc +++ b/bindings/sim_cic3_pdm.cc @@ -19,6 +19,14 @@ pdm2pcm_cic3(const uint8_t *pdm, int64_t pdm_length, int16_t *pcm, int32_t pcm_l //top->dc_alpha = hpf_alpha; //top->scale_shift = scale_shift; + // Reset on start + top->rst = 0; + top->eval(); + top->rst = 1; + top->eval(); + top->rst = 0; + top->eval(); + // Start clock off top->clk = 0; |