Giter Club home page Giter Club logo

mii_vhdl_example's Introduction

mii_vhdl_example

VHDL implementation of MII transceiver. This is in the form of a Xilinx Vivado Project. The target for this project is the Lattice iCE5LP4K FPGA. I'm using Vivado for design and testing as I prefer it to the Lattice toolchain.

Description

This is an implementation of a simple MII transceiver. Currently this only includes the transmitter and receiver. To use this, connect the data input and output to FIFOs. This is a work in progress and I'll probably add FIFO's later. For those unfamiliar with MII, there is a short tutorial on the Wiki.

Getting Started

The project is configured to take advantage of Vivado TCL scripting. Instead of committing the Vivido project, a TCL script is committed that sets up the Vivado project locally. All HDL source and testbench code goes in the /src directory. To get started do the following:

  • start the Vivado IDE: ie. ./vivado and enter the TCL console
  • run source proj_tcl.tcl from the TCL console

At this point a new directory called vhdl_mii will exist. This is where the Vivido project resides. Please do not commit any of the files from this directory.

Inspiration

I'm currently looking at MII to SPI conversion and decided to look into doing the conversion on an FPGA. There are not many commercially available ICs that do this. I started with this page and its accompanying examples.

Simulation

The transceiver is simulated in /vhdl_mii.srcs/sim_1/imports/new/mii_testbench.vhd. The testbench simulates transmission and reception of an ethernet frame. Helpful resources for understanding the simulation are in /extras. The following are included:

  • send_ethernet.py - Sends the packet used in the simulation over eth0. This is useful if you want to see the packet in real life. You'll need a Oscilloscope to see it.
  • ethernet_crc.py - Generates the ethernet frame CRC for the packet in the simulation. Unless you view this packet on the MII interface using and Oscilloscope, you won't see this CRC.

mii_vhdl_example's People

Contributors

myersw12 avatar git-training-2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar João Batista de Oliveira avatar

Forkers

liuzq71

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.