Coder Social home page Coder Social logo

grebe / ofdm Goto Github PK

View Code? Open in Web Editor NEW
28.0 7.0 7.0 81.29 MB

Chisel Things for OFDM

License: BSD 3-Clause "New" or "Revised" License

Scala 81.83% Makefile 1.01% Assembly 0.92% C++ 6.27% Verilog 0.07% Python 8.16% Shell 1.73%
chisel chisel3 scala firrtl rtl chip-generator verilog

ofdm's Introduction

OFDM

This repository contains some blocks useful for making OFDM transceivers. This includes:

  • Autocorrelator
  • CORDIC (pipelined and iterative)
  • Divider
  • Filters
  • NCO

as well as some higher level blocks that combine these to do useful OFDM things.

src/main/resources contains some traces from the ADI board that are useful for testing.

Running

To generate a synchronization block, run

sbt "runMain ofdm.GenerateSyncVerilog"

Testing

To run a test of the synchronization block and generate a nice plot, waveforms, etc., run

sbt "testOnly ofdm.SyncSpec

The waveform will be located at test_run_dir/ofdm.SyncSpec{RandomNumber}/Sync.vcd.

ofdm's People

Contributors

grebe avatar seldridge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofdm's Issues

test failed

Hi authors,
I test failed when I try "testOnly ofdm.SyncSpec".
My verilator version is "Verilator 4.008 2018-12-01 rev UNKNOWN_REV".
How can I solve this problem? Thanks in advance!
Is it because of dependency?

[info] SyncSpec:
[info] Time-domain RX
[info] - should correct no CFO with STF *** FAILED ***
[info] java.lang.IllegalArgumentException: requirement failed
[info] at scala.Predef$.require(Predef.scala:268)
[info] at ieee80211.IEEE80211$.interleaveP1(IEEE80211.scala:95)
[info] at ieee80211.IEEE80211$.interleave(IEEE80211.scala:105)
[info] at ieee80211.IEEE80211$.sig(IEEE80211.scala:131)
[info] at ieee80211.IEEE80211$.sigFreq(IEEE80211.scala:139)
[info] at ofdm.SyncSpec.$anonfun$new$6(SyncSpec.scala:101)
[info] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[info] at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
[info] at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
[info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
[info] ...
[info] - should correct CFO of 50 kHz with STF
[info] - should correct CFO for Rimas's test signal !!! IGNORED !!!
[info] - should correct CFO for Rimas's test signal (digital loopback) !!! IGNORED !!!
[info] - should correct CFO for Rimas's test signal (cable loopback) !!! IGNORED !!!
[info] - should correct CFO for Rimas's test signal (two board) !!! IGNORED !!!
[info] ScalaTest
[info] Run completed in 22 seconds, 48 milliseconds.
[info] Total number of tests run: 2
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 1, canceled 0, ignored 4, pending 0
[info] *** 1 TEST FAILED ***
[error] Failed: Total 2, Failed 1, Errors 0, Passed 1, Ignored 4
[error] Failed tests:
[error] ofdm.SyncSpec
[error] (Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 39 s, completed 2020-1-26 21:41:36
sbt:ofdm>

emmm... Besides, 'IterativeCORDIC.circularRotation' and 'IterativeCORDIC.circularVectoring' also failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.