From 32ef40a27292f74ccaef9ae5088e22af7bba3e2b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 22 Jun 2018 15:53:25 +0100 Subject: RFNoC: Add moving avg, splitstream, and vector IIR block definitions --- host/include/uhd/rfnoc/blocks/moving_avg.xml | 50 ++++++++++++++++ host/include/uhd/rfnoc/blocks/splitstream.xml | 38 ++++++++++++ host/include/uhd/rfnoc/blocks/vector_iir.xml | 84 +++++++++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 host/include/uhd/rfnoc/blocks/moving_avg.xml create mode 100644 host/include/uhd/rfnoc/blocks/splitstream.xml create mode 100644 host/include/uhd/rfnoc/blocks/vector_iir.xml (limited to 'host') diff --git a/host/include/uhd/rfnoc/blocks/moving_avg.xml b/host/include/uhd/rfnoc/blocks/moving_avg.xml new file mode 100644 index 000000000..943c83261 --- /dev/null +++ b/host/include/uhd/rfnoc/blocks/moving_avg.xml @@ -0,0 +1,50 @@ + + + Moving Average + MovingAverage + + AAD2 + + + + + SUM_LEN +
192
+
+ + DIVISOR +
193
+
+ + RB_SUM_LEN +
0
+
+ + RB_DIVISOR +
1
+
+
+ + + + length + int + 10 + GE($length, 1) AND LE($length, 255) + Average length must be in [1, 255]. + SR_WRITE("SUM_LEN", $length) AND SR_WRITE("DIVISOR", $length) + + + + + + in + sc16 + 0 + + + avg + sc16 + + +
diff --git a/host/include/uhd/rfnoc/blocks/splitstream.xml b/host/include/uhd/rfnoc/blocks/splitstream.xml new file mode 100644 index 000000000..08cbd0457 --- /dev/null +++ b/host/include/uhd/rfnoc/blocks/splitstream.xml @@ -0,0 +1,38 @@ + + + Split Stream + SplitStream + + + 5757 + + + + + in + + + out0 + + + out1 + + + + + + + + + + + + + + + + + + + + diff --git a/host/include/uhd/rfnoc/blocks/vector_iir.xml b/host/include/uhd/rfnoc/blocks/vector_iir.xml new file mode 100644 index 000000000..98b46e757 --- /dev/null +++ b/host/include/uhd/rfnoc/blocks/vector_iir.xml @@ -0,0 +1,84 @@ + + + Vector IIR + VectorIIR + + + 1112 + + + + + VECTOR_LEN +
129
+
+ + ALPHA +
130
+
+ + BETA +
131
+
+
+ + + + spp + int + 256 + GE($spp, 1) AND LE($spp, 4096) + Vector length must be in [1, 4096]. + SR_WRITE("VECTOR_LEN", $spp) + + + alpha + double + 0.9 + GT($alpha, 0.0) AND LT($alpha, 1.0) + Alpha must be in (0.0, 1.0). + + SR_WRITE("ALPHA", IROUND(MULT($alpha, 2147483648.0))) + + + beta + double + 0.1 + GT($beta, 0.0) AND LT($beta, 1.0) + Beta must be in (0.0, 1.0). + + SR_WRITE("BETA", IROUND(MULT($beta, 2147483648.0))) + + + + + in + sc16 + $spp + %vlen + + + out + sc16 + $spp + %vlen + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3