dburnett /  WEST-1

Created
Maintained by dburnett
Baseband and digital processing for a variety of projects in the WEST Lab.
Members 3
brandonhippe committed a year ago

Portland State University WEST Lab GFMPW-1 Submission

License UPRJ_CI Caravel Build

:exclamation: Important Note

This is the repository for the WEST Lab*'s Submission for GFMPW-1.

*WEST Lab, Department of Electrical and Computer Engineering, Portland State University.

Below is a list of projects included in our implementation for this submission:

  1. SCuM I/Q ADC Decoder for BLE Modulation using Matched Filter (Jacob Louie)
  2. BLE Packet Decoder/Sniffer (Brandon Hippe)
  3. Various Oscillator stability test circuits (Haziq Rohail)

1. Matched Filter

GPIO # Name Input/Output
5 Clock Input
7:6 Select Input
8 Reset Input
9 Update Input
13:10 I_BPF Input
21:14 MF_Output Output
22 Data Output

Description

Clock: The expected input clock frequency is 16MHz. Not recomended to go over 20 MHz.


Select: The 2 select pins are used to switch between the differnt wireless comunication standards. GPIO pin 7 is the MSB and pin 6 is the LSB. The Low MHz frequency for each template represents 0 for the data bit and the high MHz frequency represents 1 for the data bit (could also be reversed).

Input (Value) Mode Template
0 Bluetooth 1MHz-2MHz
1 802.15.4 2MHz-3MHz
2 Bluetooth 1.5MHZ-2MHz
3 Bluetooth 1MHz-1.5MHz

Reset: The reset pin as active high. This pin will clear the I_BPF buffer and clear the value held on the data bit.


Update: This pin is used to update the data bit. A clock sycronized with the data coming in on the I_BPF pins is what's expected on this input. For 802.15.4 with a 16MHz sample rate on I_BPF, the update pin clock rate would be 1MHz. For Bluetooth LE with a sample rate of 16MHz, the update pin clock rate would be 0.5MHz.


I_BPF: The I_BPF (I_Band Pass Filter) can be eithert the I_BPF or the Q_BPF signal. The I_BPF is a 4 bit ADC value from 0-15 that repesents the frequency modulation of data being recieved.


MF_Output: The match filter output (MF_Output) pins are the sudo score for the low MHz and high MHz signals being recieved by the I_BPF. If the low MHz bits have a higher score than the signal being recived is a lower frequency signal, meaning the data output is a 0. If the high MHz bits have a higher score than the signal being recieved is a higher frequency signal, meaning the data output a 1.

GPIO [21:14] / Bits[7:0] High/Low frequency
[21:18] / [7:4] High Frequency Score
[17:14] / [3:0] Low Frequency Score

Data: This is the decoded 1 bit data.


2. BLE Packet Decoder/Sniffer

The BLE Packet Decoder/Sniffer module is designed to take in a 1MBit/s datastream and give an output whenever a valid BLE advertising packet is detected. This revision takes into account the Preamble, Access Address, and passing CRC check within the maximum packet length and at a byte line, and does not currently decode any of the data within the packet.

The module is configurable to input/output from either the GPIO, Logic Analyzer, or Wishbone Bus. The tables below list the necessary definitions for these signals.

Below is the block diagram for the BLE Packet Decoder/Sniffer

BLE Packet Decoder/Sniffer Block Diagram


Control Register Definitions

There are 8 control registers, addressed by an 8 bit register address reg_addr. The register addresses for these registers are listed below.

Control Register Address(es)
Data 0x00
I/O Config 0x01
Channel 0x02
Access Address 0x07:0x03

Data: This register provides data to the packet decoder. Only the least significant bit is supplied, therefore the contents of the most significant 7 bits do not matter.

I/O Config: This register configures the Input and Outputs to use the GPIO, Logic Analyzer, or Wishbone Bus. Each is configurable independently. Bits 3:2 configure the output, while bits 1:0 configure the input. For these values, supplying 0b00 selects the GPIO, 0b01 selects the logic analyzer, and 0b10 selects the wishbone bus.

Channel: This register supplies the channel to reset the dewhitening LFSR to. Only the channel number in 6-bit unsigned binary needs to be supplied, as the 7th always on bit for the LFSR initialization is handled by the dewhitening LFSR. This allows for the decoder to dewhiten packets on any of the 40 BLE channels (Default is channel 37).

Access Address: This register supplies the Access Address to match after the preamble of the packet. This is a 5-byte register. The MSB (0x07) is the preamble (0x55 or 0xAA) which is correct for the acccess address. The next 4 bytes (0x06:0x03) are the access address, MSB to LSB (it is important to note that the Access Address is transmitted least significant bit first, so this value is reversed to transmission order). This allows for the decoder to match any access address supplied (Default is 0x558E89BED6, the preamble and access address for advertising packets).


GPIO

GPIO # Name Input/Output Reference Value (below)
30:23 gpio_data Input data
33:31 gpio_reg_addr Input reg_addr
34 gpio_clock Input clock
35 gpio_reset Input reset
36 packet Output packet

Logic Analyzer

LA # Name Input/Output Reference Value (below)
7:0 la_data_in Input data
15:8 la_regAddr_in Input reg_addr
16 la_clk Input clock
17 la_reset Input reset
18 packet Output packet

Wishbone Bus

WB Addr/Signal Name Input/Output Reference Value (below)
i_wb_data[7:0] wb_data Input data
i_wb_data[15:8] wb_reg_addr Input reg_addr
wb_clk_i wb_clock Input clock
wb_rst_i wb_reset Input reset
o_wb_data[0] packet Output packet

The address for the BLE packet sniffer on the wishbone bus is 0x30000000.

data: Data to be written to device register currently pointed to by reg_addr.

reg_addr: Address to write to reg_addr on next clock cycle (Note: not the register address for *_data on this clock cycle, but the next).

clock: Clock signal for the BLE packet decoder.

reset: Reset signal for the BLE packet decoder.

packet: Packet found output from BLE decoder. Normally low, goes high two cycles after last data bit of a valid packet is supplied.


3. Analog Projects

The analog portion of the chip consists of three different oscillator topologies for characterizing the flicker noise of the gf180 process, an operational amplifier, an LC Tank, and large NMOS transistors for various etching projects. The block includes seven GSG pads for RF measurements, and nine single ended pads for various VDD and control signals. A brief description of the projects is given here.


Ring Oscillator circuit

The ring oscillator is made by connecting three inverters in a chain, and a large driver at the output. The 6V transistors with sizes of 1um/0.7um for NMOS and 2um/0.7um for PMOS are used. The driver is an inverter with 20 4um fingers for NMOS and 20 8um fingers for PMOS.


Differential Ring Oscillator circuit

The differential ring oscillator is made using five differential delay cells, wherein each delay cell consists of an NMOS differential pair, a PMOS cross coupled pair and an NMOS base transistor for controlling the circuit’s frequency.


A current starved Ring Oscillator circuit

The current starved ring oscillator is a slightly modified version of the ring oscillator with an input signal to adjust its frequency.


60um x 60um NMOS Transistors

Multiple large 60um x 60um NMOS transistors are made for etching projects. The metal stack on top of one transistor will be etched through to expose the polysilicon gate underneath for measurements to evaulate the validity of post-fabrication etching for new sensor technologies.


Two Stage Operational Amplifier

A two stage operational amplifier circuit is designed for high frequency applications.


LC Tank

An LC Tank is included, and will be used to improve our ability for characterizing LC Tank circuits for use as on-chip oscillators.

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.