summaryrefslogtreecommitdiff
path: root/bindings/sim_cic3_pdm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/sim_cic3_pdm.cc')
-rw-r--r--bindings/sim_cic3_pdm.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/sim_cic3_pdm.cc b/bindings/sim_cic3_pdm.cc
index cb612f8..982581f 100644
--- a/bindings/sim_cic3_pdm.cc
+++ b/bindings/sim_cic3_pdm.cc
@@ -6,7 +6,7 @@
#include "verilated.h"
int
-pdm2pcm_cic3(const uint8_t *pdm, int pdm_length, int16_t *pcm, int pcm_length)
+pdm2pcm_cic3(const uint8_t *pdm, int64_t pdm_length, int16_t *pcm, int32_t pcm_length, uint8_t hpf_alpha, uint8_t scale_shift)
{
// FIXME: verify that output buffer is large enough
@@ -15,7 +15,8 @@ pdm2pcm_cic3(const uint8_t *pdm, int pdm_length, int16_t *pcm, int pcm_length)
Vcic3_pdm *top = new Vcic3_pdm{cp};
- top->hpf_alpha = 240;
+ top->hpf_alpha = hpf_alpha;
+ top->scale_shift = scale_shift;
// Start clock off
top->clk = 0;