Skip to content

Commit

Permalink
merged with main
Browse files Browse the repository at this point in the history
  • Loading branch information
jogomojo committed Mar 12, 2021
2 parents be51ee5 + 0b5c7bd commit 69289af
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rfsoc_freqplan/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

from .interface import ADCWidgets, DACWidgets, DDCWidgets, DUCWidgets
import ipywidgets as widgets
from pkg_resources import resource_stream

class FrequencyPlannerApplication:
def __init__(self):
with open('info.html', 'r') as f:
info = widgets.HTML(value=f.read())
f = resource_stream('rfsoc_freqplan', 'info.html')
info = widgets.HTML(value=f.read())
f.close()

adc = ADCWidgets().layout
dac = DACWidgets().layout
Expand Down
72 changes: 72 additions & 0 deletions rfsoc_freqplan/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<html>

<style>a{color: #3366BB;}</style>
<style>h3{padding:0px; margin:0px }</style>
<style>
table {
border-collapse: collapse;
}
td,
th {
padding: 5px;
text-align: left;
}
</style>

<body>

<h3>Abbreviations and Acronyms</h3>

<table border="1" width="auto">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><strong>Fc</strong></td>
<td>Centre frequency</td>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Fs</strong></td>
<td>Sample Rate</td>
</tr>
<tr>
<td><strong>GTIS</strong></td>
<td>Gain/time interleaving spur</td>
</tr>
<tr>
<td><strong>HD</strong></td>
<td>Harmonic frequency</td>
</tr>
<tr>
<td><strong>IL</strong></td>
<td>Interleaving</td>
</tr>
<tr>
<td><strong>NCO</strong></td>
<td>Numerically Controlled Oscillator</td>
</tr>
<tr>
<td>NSD</td>
<td>Noise Spectral Density</td>
</tr>
<tr>
<td><strong>OIS</strong></td>
<td>Offset interleaving spur</td>
</tr>
<tr>
<td><strong>PLL</strong></td>
<td>Phase-Locked Loop</td>
</tr>
</tbody>
</table>

<br>
<h3>Spur Amplitudes</h3>
<p>Typical values for the spur amplitudes used in the DDC and DUC planners can be found in the RFSoC datasheet <a href="https://www.xilinx.com/support/documentation/data_sheets/ds926-zynq-ultrascale-plus-rfsoc.pdf" target="_blank" rel="noopener noreferrer">DS926</a>.</p>

</body>
</html>
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# global variables
package_name = 'rfsoc_freqplan'
pip_name = 'rfsoc-freqplan'
data_files = []
data_files = ['info.html']

# heroku setup
if os.path.isfile('Procfile'):
Expand Down

0 comments on commit 69289af

Please sign in to comment.