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