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 |
10 |
jorisvr |
2011-08-11
|
65 |
|
|
* spwahbmst.vhd: Fix incorrect "hsize" indication on AHB access.
|
66 |
|
|
Many thanks to Søren Larsen for reporting this bug.
|
67 |
|
|
|
68 |
9 |
jorisvr |
2011-07-10
|
69 |
|
|
* spwamba_test.c: Longer delays to run correctly on 100 MHz LEON3.
|
70 |
|
|
* spwltest.c: Allow smaller user-defined block size; skip unnecessery tests.
|
71 |
|
|
* License changed to allow LGPL in addition to GPL for non-GRLIB parts.
|
72 |
|
|
|
73 |
7 |
jorisvr |
2011-02-11
|
74 |
|
|
* spwamba: Add tick_out signal.
|
75 |
|
|
* swprecvfront_fast: Simplified data transfer between clock domains.
|
76 |
|
|
* Clean up synchronization of data paths between clock domains.
|
77 |
|
|
|
78 |
6 |
jorisvr |
2010-12-03
|
79 |
|
|
* Add RTEMS driver and test program for SPWAMBA.
|
80 |
|
|
* Add documentation for SPWAMBA.
|
81 |
|
|
* spwamba: Change TX FIFO management; start new transfer when there is room
|
82 |
|
|
for a maximum burst instead of aiming for 3/4 fill rate.
|
83 |
|
|
* spwamba: Do not reset spwxmit in response to software reset.
|
84 |
|
|
* spwamba: Fix bug in maximum burst size calculation.
|
85 |
|
|
* spwamba: Optimize address generation in burst state machine.
|
86 |
|
|
* spwamba: More careful calculation of RX credit.
|
87 |
|
|
|
88 |
|
|
2010-09-21
|
89 |
5 |
jorisvr |
* Add AMBA interface (preliminary version, untested, undocumented).
|
90 |
|
|
* License changed from LGPL to GPL.
|
91 |
|
|
* Again fix an issue with EEP injection on link loss.
|
92 |
|
|
* Add DATAPATHONLY keyword to timing constraints.
|
93 |
|
|
|
94 |
4 |
jorisvr |
2010-09-12
|
95 |
|
|
* Fixed issue with automatic discarding of TX data after link error.
|
96 |
|
|
* After link error, spwstream will terminate current packet with EEP even
|
97 |
|
|
if the linkdisable signal is active.
|
98 |
|
|
* Added code comment to clarify a dependency between spwrecv and spwlink.
|
99 |
|
|
(Thanks to Rafael Corsi Ferrao for reporting this obscurity.)
|
100 |
|
|
|
101 |
|
|
2010-07-12
|
102 |
|
|
* Added manual.
|
103 |
|
|
* Fix incorrect bitrate during link handshake. The system clock frequency
|
104 |
|
|
was used to compute the initial tx clock divider, even when the clock
|
105 |
|
|
divider would act on the txclk instead of the system clock.
|
106 |
|
|
* Improve fast transmitter. Sending FCT tokens at high bit rate no longer
|
107 |
|
|
causes insertion of a NULL token.
|
108 |
|
|
|
109 |
|
|
2010-06-08
|
110 |
|
|
* Initial release.
|
111 |
|
|
|
112 |
|
|
|
113 |
2 |
jorisvr |
Contact
|
114 |
|
|
-------
|
115 |
|
|
|
116 |
|
|
For the latest version of this core, see the OpenCores project page.
|
117 |
|
|
|
118 |
|
|
For more information, comments, suggestions or bug reports, either
|
119 |
|
|
go to the OpenCores project page or email me directly.
|
120 |
|
|
|
121 |
|
|
Project page at OpenCores:
|
122 |
|
|
http://opencores.org/project,spacewire_light
|
123 |
|
|
|
124 |
|
|
Email:
|
125 |
9 |
jorisvr |
joris (at) jorisvr (dot) nl
|
126 |
2 |
jorisvr |
|
127 |
|
|
--
|