| 1 |
2 |
jorisvr |
|
| 2 |
|
|
SpaceWire Light
|
| 3 |
|
|
===============
|
| 4 |
|
|
|
| 5 |
7 |
jorisvr |
Copyright 2009-2011 Joris van Rantwijk
|
| 6 |
2 |
jorisvr |
|
| 7 |
|
|
|
| 8 |
|
|
Overview
|
| 9 |
|
|
--------
|
| 10 |
|
|
|
| 11 |
6 |
jorisvr |
SpaceWire Light is a SpaceWire encoder-decoder.
|
| 12 |
2 |
jorisvr |
It is synthesizable for FPGA targets (up to 200 Mbit on Spartan-3).
|
| 13 |
6 |
jorisvr |
Application interfaces include a simple FIFO interface, as well as
|
| 14 |
|
|
an AMBA bus interface for LEON3 system-on-chip designs.
|
| 15 |
2 |
jorisvr |
|
| 16 |
|
|
The goal is to provide a complete, reliable, fast implementation
|
| 17 |
6 |
jorisvr |
of a SpaceWire encoder-decoder according to ECSS-E-ST-50-12C.
|
| 18 |
2 |
jorisvr |
The core is "light" in the sense that it does not provide additional
|
| 19 |
|
|
features such as RMAP, routing etc.
|
| 20 |
|
|
|
| 21 |
7 |
jorisvr |
SpaceWire Light supports two application interfaces. One interface
|
| 22 |
|
|
provides FIFO-style access to RX/TX buffers in the core (spwstream).
|
| 23 |
|
|
This interface can be easily integrated into most digital designs.
|
| 24 |
|
|
|
| 25 |
|
|
Alternatively, an AMBA bus interface (spwamba) may be used to integrate
|
| 26 |
|
|
SpaceWire Light into a LEON3 embedded system. This interface supports
|
| 27 |
8 |
jorisvr |
DMA-based data transfers. The code for the AMBA interface depends on GRLIB,
|
| 28 |
7 |
jorisvr |
a VHDL library from Aeroflex Gaisler. The source of GRLIB must be downloaded
|
| 29 |
|
|
separately from http://www.gaisler.com/.
|
| 30 |
|
|
|
| 31 |
3 |
jorisvr |
See doc/Manual.pdf for more information.
|
| 32 |
2 |
jorisvr |
|
| 33 |
|
|
|
| 34 |
9 |
jorisvr |
License
|
| 35 |
|
|
-------
|
| 36 |
|
|
|
| 37 |
|
|
Copyright 2009-2011 Joris van Rantwijk
|
| 38 |
|
|
|
| 39 |
|
|
SpaceWire Light is free software; you can redistribute it and/or modify
|
| 40 |
|
|
it under the terms of the GNU General Public License as published by
|
| 41 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
| 42 |
|
|
(at your option) any later version.
|
| 43 |
|
|
|
| 44 |
|
|
SpaceWire Light is distributed in the hope that it will be useful,
|
| 45 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 46 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 47 |
|
|
GNU General Public License for more details.
|
| 48 |
|
|
|
| 49 |
|
|
You should have received a copy of the GNU General Public License along
|
| 50 |
|
|
with the SpaceWire Light package. If not, see .
|
| 51 |
|
|
|
| 52 |
|
|
In addition, the parts of SpaceWire Light which do not depend on GRLIB
|
| 53 |
|
|
may be distributed under the terms of the GNU Lesser General Public License
|
| 54 |
|
|
as published by the Free Software Foundation; either version 2.1 of the
|
| 55 |
|
|
License, or (at your option) any later version.
|
| 56 |
|
|
|
| 57 |
|
|
You should have received a copy of the GNU Lesser General Public License along
|
| 58 |
|
|
with the SpaceWire Light package. If not, see .
|
| 59 |
|
|
|
| 60 |
|
|
|
| 61 |
4 |
jorisvr |
Version history
|
| 62 |
|
|
---------------
|
| 63 |
|
|
|
| 64 |
9 |
jorisvr |
2011-07-10
|
| 65 |
|
|
* spwamba_test.c: Longer delays to run correctly on 100 MHz LEON3.
|
| 66 |
|
|
* spwltest.c: Allow smaller user-defined block size; skip unnecessery tests.
|
| 67 |
|
|
* License changed to allow LGPL in addition to GPL for non-GRLIB parts.
|
| 68 |
|
|
|
| 69 |
7 |
jorisvr |
2011-02-11
|
| 70 |
|
|
* spwamba: Add tick_out signal.
|
| 71 |
|
|
* swprecvfront_fast: Simplified data transfer between clock domains.
|
| 72 |
|
|
* Clean up synchronization of data paths between clock domains.
|
| 73 |
|
|
|
| 74 |
6 |
jorisvr |
2010-12-03
|
| 75 |
|
|
* Add RTEMS driver and test program for SPWAMBA.
|
| 76 |
|
|
* Add documentation for SPWAMBA.
|
| 77 |
|
|
* spwamba: Change TX FIFO management; start new transfer when there is room
|
| 78 |
|
|
for a maximum burst instead of aiming for 3/4 fill rate.
|
| 79 |
|
|
* spwamba: Do not reset spwxmit in response to software reset.
|
| 80 |
|
|
* spwamba: Fix bug in maximum burst size calculation.
|
| 81 |
|
|
* spwamba: Optimize address generation in burst state machine.
|
| 82 |
|
|
* spwamba: More careful calculation of RX credit.
|
| 83 |
|
|
|
| 84 |
|
|
2010-09-21
|
| 85 |
5 |
jorisvr |
* Add AMBA interface (preliminary version, untested, undocumented).
|
| 86 |
|
|
* License changed from LGPL to GPL.
|
| 87 |
|
|
* Again fix an issue with EEP injection on link loss.
|
| 88 |
|
|
* Add DATAPATHONLY keyword to timing constraints.
|
| 89 |
|
|
|
| 90 |
4 |
jorisvr |
2010-09-12
|
| 91 |
|
|
* Fixed issue with automatic discarding of TX data after link error.
|
| 92 |
|
|
* After link error, spwstream will terminate current packet with EEP even
|
| 93 |
|
|
if the linkdisable signal is active.
|
| 94 |
|
|
* Added code comment to clarify a dependency between spwrecv and spwlink.
|
| 95 |
|
|
(Thanks to Rafael Corsi Ferrao for reporting this obscurity.)
|
| 96 |
|
|
|
| 97 |
|
|
2010-07-12
|
| 98 |
|
|
* Added manual.
|
| 99 |
|
|
* Fix incorrect bitrate during link handshake. The system clock frequency
|
| 100 |
|
|
was used to compute the initial tx clock divider, even when the clock
|
| 101 |
|
|
divider would act on the txclk instead of the system clock.
|
| 102 |
|
|
* Improve fast transmitter. Sending FCT tokens at high bit rate no longer
|
| 103 |
|
|
causes insertion of a NULL token.
|
| 104 |
|
|
|
| 105 |
|
|
2010-06-08
|
| 106 |
|
|
* Initial release.
|
| 107 |
|
|
|
| 108 |
|
|
|
| 109 |
2 |
jorisvr |
Contact
|
| 110 |
|
|
-------
|
| 111 |
|
|
|
| 112 |
|
|
For the latest version of this core, see the OpenCores project page.
|
| 113 |
|
|
|
| 114 |
|
|
For more information, comments, suggestions or bug reports, either
|
| 115 |
|
|
go to the OpenCores project page or email me directly.
|
| 116 |
|
|
|
| 117 |
|
|
Project page at OpenCores:
|
| 118 |
|
|
http://opencores.org/project,spacewire_light
|
| 119 |
|
|
|
| 120 |
|
|
Email:
|
| 121 |
9 |
jorisvr |
joris (at) jorisvr (dot) nl
|
| 122 |
2 |
jorisvr |
|
| 123 |
|
|
--
|