mirror of
https://github.com/jhshi/openofdm.git
synced 2024-12-24 07:46:55 +00:00
working
This commit is contained in:
parent
506472dec3
commit
cf42e1b7ae
@ -17,4 +17,7 @@ help:
|
|||||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
%: Makefile
|
%: Makefile
|
||||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
|
livehtml:
|
||||||
|
sphinx-autobuild -b html $(SPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
|
||||||
|
@ -87,7 +87,7 @@ todo_include_todos = True
|
|||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
#
|
#
|
||||||
html_theme = 'alabaster'
|
html_theme = 'sphinx_rtd_theme'
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
|
4
docs/source/freq_offset.rst
Normal file
4
docs/source/freq_offset.rst
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.. _freq_offset:
|
||||||
|
|
||||||
|
Frequency Offset Correction
|
||||||
|
===========================
|
@ -10,6 +10,9 @@ Welcome to OpenOFDM's documentation!
|
|||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
:caption: Contents:
|
:caption: Contents:
|
||||||
|
|
||||||
|
power
|
||||||
|
freq_offset
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
|
28
docs/source/power.rst
Normal file
28
docs/source/power.rst
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
Packet Detection
|
||||||
|
================
|
||||||
|
|
||||||
|
802.11 OFDM packets start with a short PLCP Preamble sequence to help the
|
||||||
|
receiver detect the beginning of the packet. The short preamble duration is
|
||||||
|
8 us. At 20 MSPS sampling rate, it contains 10 repeating sequence of 16 I/Q
|
||||||
|
samples. The short preamble also helps the receiver for coarse frequency offset
|
||||||
|
correction , which will be discussed separately in :ref:`freq_offset`.
|
||||||
|
|
||||||
|
The core idea of detecting the short preamble is to utilize its repeating nature
|
||||||
|
by calculating the auto correlation metric. But before that, we need to make sure
|
||||||
|
we are trying to detect short preamble from "meaningful" signals. One example of
|
||||||
|
"un-meaningful" signal is constant power levels, whose auto correlation metric
|
||||||
|
is very high but does not represent packet beginning.
|
||||||
|
|
||||||
|
Power Trigger
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- **Module**: ``power_trigger.v``
|
||||||
|
- **Input**: ``sample_in`` (16B I + 16B Q), ``sample_in_strobe`` (1B)
|
||||||
|
- **Output**: ``trigger`` (1B)
|
||||||
|
|
||||||
|
The first module in the pipeline is the ``power_trigger.v``. It takes the I/Q
|
||||||
|
samples as input and asserts the ``trigger`` signal during a potential packet
|
||||||
|
activity. Optionally, it can be configured to skip the first certain number of
|
||||||
|
samples before detecting a power trigger. This is useful to skip the spurious
|
||||||
|
signals during the intimal hardware stabilization phase.
|
||||||
|
|
@ -1,3 +1,2 @@
|
|||||||
numpy==1.11.2
|
numpy==1.11.2
|
||||||
wltrace==1.1.1
|
wltrace==1.1.1
|
||||||
Sphinx==1.5.5
|
|
||||||
|
@ -111,11 +111,6 @@ initial begin
|
|||||||
set_addr = SR_SKIP_SAMPLE;
|
set_addr = SR_SKIP_SAMPLE;
|
||||||
set_data = 0;
|
set_data = 0;
|
||||||
|
|
||||||
# 20
|
|
||||||
// jam filter len
|
|
||||||
set_addr = SR_HEADER_LEN;
|
|
||||||
set_data = 32;
|
|
||||||
|
|
||||||
# 20 set_stb = 0;
|
# 20 set_stb = 0;
|
||||||
|
|
||||||
bb_sample_fd = $fopen("./sim_out/sample_in.txt", "w");
|
bb_sample_fd = $fopen("./sim_out/sample_in.txt", "w");
|
||||||
|
@ -4,13 +4,13 @@ module power_trigger
|
|||||||
input enable,
|
input enable,
|
||||||
input reset,
|
input reset,
|
||||||
|
|
||||||
input [31:0] sample_in,
|
|
||||||
input sample_in_strobe,
|
|
||||||
|
|
||||||
input set_stb,
|
input set_stb,
|
||||||
input [7:0] set_addr,
|
input [7:0] set_addr,
|
||||||
input [31:0] set_data,
|
input [31:0] set_data,
|
||||||
|
|
||||||
|
input [31:0] sample_in,
|
||||||
|
input sample_in_strobe,
|
||||||
|
|
||||||
output reg trigger
|
output reg trigger
|
||||||
);
|
);
|
||||||
`include "common_params.v"
|
`include "common_params.v"
|
||||||
|
Loading…
Reference in New Issue
Block a user