Skip to content

SatCat5 is a mixed-media Ethernet switch that lets a variety of devices communicate on the same network.

License

Notifications You must be signed in to change notification settings

cperezmit06/satcat5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SatCat5 Introduction

SatCat5 Logo

SatCat5 is FPGA software that implements a low-power, mixed-media Ethernet switch. It also includes embedded software libraries to help microcontrollers interact with Ethernet networks.

A SatCat5 switch is functionally equivalent to commercially available, unmanaged Ethernet switches for home use. However, it also supports lower-speed connections to the same network using I2C, SPI, or UART. These lower-rate data links, (commonly used in simple, low-cost, low-power microcontrollers) allow nearly any device to participate in the same local communication network, regardless of its capability level.

Like any Ethernet switch, this one has multiple ports; each port is a point-to-point link from the switch to a network device, which could be a PC, a microcontroller, or even another switch. Power draw required for the switch itself is well under 1 watt.

Switch Capabilities

Example network with microcontrollers and other nodes

A major goal of the SatCat5 project is to support a variety of endpoints, from simple microcontrollers to a full-fledged PC, all connected to the same Ethernet network.

A complete listing of supported interfaces is available here. The list includes the usual 10/100/1000 Mbps "Media Independent Interfaces" (RMII, RGMII, SGMII) as well as media and physical-layer options that aren't usually used with Ethernet (I2C, SPI, UART). The latter options are typically lower speed (1-10 Mbps), but use physical layer protocols that are more amenable to use with simple microcontrollers. All interfaces transmit and receive standard Ethernet Frames.

Detailed version history is available in the changelog.

More information is available in the Frequently Asked Questions.

What Is Provided

This project is effectively a set of building blocks, ready to be used to build and connect to your own custom Ethernet switch. The switch can be optimized to your needs, tailored to your preferred platform, port count, interface types, etc.

In addition, SatCat5 includes software libraries for:

  • Sending and receiving Ethernet frames.
  • Sending and receiving ARP, ICMP, IP, and UDP messages.
  • Configuring a managed SatCat5 Ethernet switch.
  • Configuring various SatCat5 I/O peripherals (e.g., I2C, MDIO, SPI, or UART).

In addition to these building blocks, we include several reference designs that showcase many of the available features. The easiest way to get started is with the Digilent Arty A7, a low-cost FPGA development board. We've included a reference design that specifically targets this board. PMOD connector pinouts are chosen to be directly compatible with off-the-shelf USB-UART adapters.

Other reference designs include the prototype that we built to develop, test, and demonstrate the SatCat5 switch. It is intended to run on many off-the-shelf FPGA development boards, using an FMC port to attached to a custom PCB. The custom PCB includes Ethernet transceivers, PMOD connectors, and other I/O.

The main expected users of this project are cubesat and smallsat developers. By encouraging everyone to use this technology, we create a mutually-compatible ecosystem that will make it easier to develop new small-satellite payloads, and simultaneously make it easier to integrate those payloads into vehicles. For more information on SatCat5 and cubesats, refer to our SmallSat 2020 publication.

However, we think the same technology might be useful to other embedded systems, including Internet-of-Things systems that want to integrate microcontrollers onto a full-featured LAN.

Getting Started

If you'd like to build the Arty example design, you'll need the Vivado Design Suite. We've tested with version 2015.4, 2016.3, and 2019.1, but it should work as-is with most other versions as well. Once it's installed, simply run "make arty_35t" in the root folder. (Or follow the equivalent steps under Windows.)

If you'd like to build your own design, create a new top-level VHDL file and add the following:

  • Any number of port_xx blocks. (e.g., port_spi, port_uart, port_rgmii, etc.)
  • At least one switch_core block.
    • One is always functionally adequate.
    • Sometimes you can save memory, power, and other resources if you use two.
  • One switch_aux block. This provides error-reporting, status LEDs, and other niceties.
  • Clock generation. Check the documentation for selected port type(s) to see what's needed.

More information is available in the Frequently Asked Questions.

Folder Structure

  • doc: Documentation and associated images.
  • example: Example designs for specific hardware platforms
  • project: Scripts and project files for specific vendor tools.
    • libero: Building Microsemi designs in Libero. (Tested with version 12.3.)
    • modelsim: Running VHDL simulations in ModelSim. (Tested with version 10.0a.)
    • vivado: Packagine IP-cores, building, or simulating Xilinx designs in Vivado. (Tested with Vivado version 2019.1.)
    • yosis: Building Lattice designs using Yosis.
  • sim: Simulation and verification of the design.
    • cpp: Unit tests for the embedded software libraries.
    • matlab: MATLAB/Octave scripts used to generate certain lookup tables.
    • test: Test data for various unit-test simulations.
    • vhdl: VHDL unit tests for individual functional blocks.
  • src: Source code for the core SatCat5 design
    • cpp: Embedded software libraries for connecting to and configuring an Ethernet network.
    • python: Python libraries for connecting to raw-Ethernet and Ethernet-over-UART ports.
    • vhdl/common: VHDL implementation of most functional blocks. (Common / all platforms)
    • vhdl/lattice: Platform-specific VHDL for the Lattice iCE40.
    • vhdl/microsemi: Platform-specific VHDL for the Microsemi Polarfire.
    • vhdl/xilinx: Platform-specific VHDL for Xilinx Artix7 and Kintex7. (Including Arty and AC701 example designs.)
  • test: Additional testing, including the prototype reference design.
    • chat_client: A demo application that implements chatroom functions using raw Ethernet frames.
    • pi_wire: A tool for connecting to SatCat5 with a Raspberry Pi.
    • proto_pcb: PCB design files for the prototype reference design.

Contributing

We encourage you to contribute to SatCat5! Please check out the guidelines here for information on how to submit bug reports and code changes.

Patents

Portions of SatCat5 are patent pending, USPTO application number 16/708,306.

In accordance with SatCat5's LGPL license agreement, we grant a royalty-free license for use of this technology. Refer to section 11 of the GPLv3 license for details.

Copyright Notice

Copyright 2019, 2020, 2021 The Aerospace Corporation

This file is part of SatCat5.

SatCat5 is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SatCat5 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SatCat5. If not, see https://www.gnu.org/licenses/.

About

SatCat5 is a mixed-media Ethernet switch that lets a variety of devices communicate on the same network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • VHDL 56.8%
  • C++ 33.0%
  • Tcl 3.9%
  • Stata 3.0%
  • Python 2.0%
  • MATLAB 0.7%
  • Other 0.6%