Code Monkey home page Code Monkey logo

epci's Introduction

Introduction

I always had a dream about HW/SW co-design of network controller. Like designing schematic / PCB, then develop FW/SW and so on ...

This is basically just a dream. But for my first iteration I'd decided to design a PCI network card.

As PCI is parallel (and a little simple) protocol, so I can handle (hopefully) hardware part of network card in LX9!

Again, my design can be as simple as 2 layer PCB. There it is!

IMG_20190820_212104

IMG_20190820_212238

Specification

First of all, main idea of board came from MESA-5I25 board from mesanet.com. I've learn alot from their board (only it's pictures, I've never have one) and HDLs they provide for board.

  • Universal PCI interface (5v0, 3v3)
  • XC6SLX9-2TQG144I
  • DP83848 (Ethernet PHY with MII interface to FPGA)
  • W25Q64FV (32Mb x4 flash)
  • FT2232H (As USB to serial and JTAG interface)

Development

I'm still working on HDLs. codes on FW/SRC are simple demo for board functionality which:

  • Provide 256 bytes BRAM in first 256 bytes of BAR0
  • Provide 1 byte general output register in second 256 bytes of BAR0 which control 3x LED on board

I've tested MII/MDIO interface via MicroBlaze soft core. They are working.

Here is my development setup:

IMG_20190822_180849

Motherboard I'm using, is an old G41M-E2SL which runs Ubuntu-16.04 from PXE/NFS. So I have full control over kernel, initrd and rootfs.

Check Documents\pxe-menu

Notes

  1. If you want to use this board, as I and my good friend said: Check it yourself !
  2. And ... Have fun ...

epci's People

Contributors

arashem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

epci's Issues

multiple read from /dev/epci-mem cause BAR0 to clear

While EPCI is working, by multiple reading form /dev/epci-mem, BAR0 become 0x00
Here is evidence for it:

root@G41MES2L:~# hexdump -C -n 256 /dev/epci-mem
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100
root@G41MES2L:~# hexdump -C -n 256 /dev/epci-mem
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000100

After calling hdl/scripts/epci_configure everything works fine

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.