Coder Social home page Coder Social logo

juliatelecom / physicalcommunications.jl Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 11 KB

Tools for development & test of PHY communication layer

License: MIT License

Julia 100.00%
telecommunications microwave mm-wave pseudo-random prbs lfsr eye-diagrams eda

physicalcommunications.jl's Introduction

PhysicalCommunications.jl

Build Status

Description

PhysicalCommunications.jl provides tools for the development & test of the physical communication layer (typically implemented in the "PHY" chip).

Eye Diagrams

  • buildeye(): Builds an eye diagram by folding x values of provided (x,y) into multiple windows of teye that start (are "triggered") every tbit:
    • buildeye(x::Vector, y::Vector, tbit::Number, teye::Number; tstart::Number=0)

Example plotting with Plots.jl:

#Assumption: (x, y) data generated here.
tbit = 1e-9 #Assume data bit period is 1ns.

#Build eye & use tstart to center data.
eye = buildeye(x, y, tbit, 2.0*tbit, tstart=0.2*tbit)

plot(eye.vx, eye.vy)

Test Patterns

The PhysicalCommunications.jl module provides the means to create pseudo-random bit sequences to test/validate channel performance:

Example creation of PRBS pattern using maximum-length Linear-Feedback Shift Register (LFSR):

pattern = collect(sequence(MaxLFSR(31), seed=11, len=1000, output=Bool)).

Example validation of maximum-length LFSR sequence:

_errors = sequence_detecterrors(MaxLFSR(31), pattern)

Test Patterns: Supported Sequence Generators (Types)

  • SequenceGenerator (abstract type): Defines algorithm used by sequence() to create a bit sequence.
  • PRBSGenerator <: SequenceGenerator (abstract type): Specifically a pseudo-random bit sequence.
  • MaxLFSR{LEN} <: PRBSGenerator: Identifies a "Maximum-Length LFSR" algorithm.
    • Reference: Alfke, Efficient Shift Registers, LFSR Counters, and Long Pseudo-Random Sequence Generators, Xilinx, XAPP 052, v1.1, 1996.
  • **MaxLFSR_Iter{LEN,TRESULT}: "Iterator" object for MaxLFSR sequence generator.
    • Must collect(::MaxLFSR_Iter) to obtain sequence values.

Test Patterns: Iterable API

  • sequence(): Create an iterable object that defines a bit sequence of length len..
    • sequence(t::SequenceGenerator; seed::Integer=11, len::Int=-1, output::DataType=Int)
    • Must use collect(sequence([...])) to obtain actual sequence values.

Compatibility

Extensive compatibility testing of PhysicalCommunications.jl has not been performed. The module has been tested using the following environment(s):

  • Linux / Julia-1.1.1

Disclaimer

The PhysicalCommunications.jl module is not yet mature. Expect significant changes.

physicalcommunications.jl's People

Contributors

ma-laforge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

physicalcommunications.jl's Issues

Update project.toml of JuliaRegistries

Hello @ma-laforge
As you have moved PhysicalComm on JuliaTelecom and it is necessary to update the Julia Registries that still points to the former git repo (i.e. https://github.com/ma-laforge/PhysicalCommunications.jl.git).
The package cannot be updated since the link is outdated (I have realized this when I tried to update UHDBindings).

So address this issue, you have to make a PR that changes the repo link here https://github.com/JuliaRegistries/General/blob/master/P/PhysicalCommunications/Package.toml

BR :)

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.