aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Pendlum <jonathon.pendlum@ettus.com>2017-07-10 10:15:01 -0700
committerJonathon Pendlum <jonathon.pendlum@ettus.com>2017-07-10 10:15:01 -0700
commit7518663fb766a6c90c5c3d87accd1c0d1b41aa5a (patch)
tree850e6e040bc8653b0aef1a122a7545e247db1fc4
parentrfnoc: Updated FFT Nos Script due to FPGA changes (diff)
downloaduhd-7518663fb766a6c90c5c3d87accd1c0d1b41aa5a.tar.xz
uhd-7518663fb766a6c90c5c3d87accd1c0d1b41aa5a.zip
rfnoc: Updated Schmidl-Cox Noc Script due to FPGA changes
-rw-r--r--host/include/uhd/rfnoc/blocks/schmidlcox.xml24
1 files changed, 21 insertions, 3 deletions
diff --git a/host/include/uhd/rfnoc/blocks/schmidlcox.xml b/host/include/uhd/rfnoc/blocks/schmidlcox.xml
index 402e4de0f..917b54ba3 100644
--- a/host/include/uhd/rfnoc/blocks/schmidlcox.xml
+++ b/host/include/uhd/rfnoc/blocks/schmidlcox.xml
@@ -28,6 +28,10 @@
<name>THRESHOLD</name>
<address>134</address>
</setreg>
+ <setreg>
+ <name>AGC_REF_LEVEL</name>
+ <address>135</address>
+ </setreg>
</registers>
<!-- Args -->
<args>
@@ -38,6 +42,12 @@
<!--TODO: Make publisher, when setting this value, check if equal to GET()-->
</arg>
<arg>
+ <name>frame_len</name>
+ <type>int</type>
+ <value>64</value>
+ <action>SR_WRITE("FRAME_LENGTH", $frame_len)</action>
+ </arg>
+ <arg>
<name>cp_len</name>
<type>int</type>
<value>16</value>
@@ -49,13 +59,13 @@
<value>0.8</value>
<check>GE($threshold, 0.0) AND LE($threshold, 1.0)</check>
<check_message>Detection threshold must be in [0, 1].</check_message>
- <action>SR_WRITE("THRESHOLD", IROUND(MULT(32768.0, $threshold)))</action>
+ <action>SR_WRITE("THRESHOLD", IROUND(MULT(16384.0, $threshold)))</action>
</arg>
<arg>
<name>delay</name>
<type>int</type>
- <value>77</value>
- <check>GE($delay, 0) AND LE($delay, 1000)</check>
+ <value>146</value>
+ <check>GE($delay, 0) AND LE($delay, 32767)</check>
<check_message>Invalid delay.</check_message>
<action>SR_WRITE("DELAY", $delay)</action>
</arg>
@@ -67,6 +77,14 @@
<check_message>Invalid number of max symbols.</check_message>
<action>SR_WRITE("NUM_SYMBOLS_MAX", $max_num_symbols)</action>
</arg>
+ <arg>
+ <name>agc_ref_level</name>
+ <type>double</type>
+ <value>0.125</value>
+ <check>GE($agc_ref_level, 0.0) AND LE($agc_ref_level, 1.0)</check>
+ <check_message>AGC reference level must be in [0, 1].</check_message>
+ <action>SR_WRITE("AGC_REF_LEVEL", IROUND(MULT(32768.0, $agc_ref_level)))</action>
+ </arg>
</args>
<ports>
<sink>