spacewire remote terminal controller
TRANSCRIPT
![Page 1: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/1.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
1
SpaceWire Remote Terminal Controller
Torbjörn Hult20 July 2005
![Page 2: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/2.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
2
SpaceWire RTC contract
• ESA study
• Prime Contractor: Saab Ericsson Space
• Subcontractor: Gaisler Research
• Foundry: ATMEL, ATC18RT 0,18µ process,multi-project wafer run
![Page 3: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/3.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
3
SpaceWire RTC overview
LEON2 SPARC V8Integer Unit
I-Cache D-Cache
AHB master
DebugSupport
Unit
DebugSerial Link
UART
MemoryController
AHB / APBbridge
ADC / DACInterface
GeneralPurpose I/O
FIFOInterface
On-ChipMemory
32-bitTIMERs
AHB master AHB slave
AHBArbiter / Decoder
UARTs
TIMERsGPIO
IRQ
AHB slaveAHB master
AMBA AHB bus
AMBA APB bus
HurriCANeController
AHB master
DundeeSpaceWire
AHB master
CTRL/DMA CTRL/DMA
GRLIB LEON2-FT ESA New
![Page 4: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/4.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
4
Processor and Memory• LEON-2 FT VHDL model
• Cache sizing:– 4 kbyte instruction, 4 kbyte data
• On-chip memory sizing:– 64 kbyte EDAC protected
• External memory sizing:– 4 Mbyte PROM (8-bit wide, EDAC)– 8 Mbyte SRAM (8, 16 or 32 bit, EDAC)– 2 Mbyte IO
![Page 5: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/5.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
5
FIFO Interface
• Interface: 9-bit / 18-bit data,
read & write strobes, full, half-full, empty,programmable wait states
• Function: stand-alone FIFO interface withactive control of external FIFO devices
• On-chip: AMBA AHB master with DMA
![Page 6: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/6.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
6
SpaceWire Functions• SPW CODEC IP used
• RMAP support (Read & Write block)
• Rx and Tx Channels, separate from RMAP
• Time Code, Receive and transmit
• 200 Mbit/s capability, @ 100MHz SPWClock, i.e. DDR only
• I/F to AMBA bus
• Local CPU Support for:- Packet handling (multiple packet, buffer limits, alignment, debug) - Sending RMAP commands (separating header and data, CRC generation, ..)- Transparent reception of Transfer protocols not supported in HW.
![Page 7: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/7.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
7
SpaceWire block diagram
CODEC
AHB master
Reg If
RMAPProtocol
RxFIFO
TxFIFOAHB
masterArbiter
RMAPResponseTX
AMBA AHB bus
RX
SpaceWire link
AMBA APB bus
On-ChipMemory
AHB slave
![Page 8: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/8.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
8
Rx Functions
• Two Rx Channels, Rx(0) reserved for RMAP, (each separated by unique DLA)
• RMAP: protocol identification, Command interpreter and Error handling,
• MemoryBuffer structure, individual buffers for each Rx Channel.RMAP uses its buffer only for Responses and unsupported Commands.
• CRC8 Checker in HW, for RMAP packets only
• AHB Master (Write only)
• High speed, over clock region transfers>200MBit/s Data transfer rate using 64bit blocks @ 30MHz BusClk and 100MHz TxClk.
![Page 9: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/9.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
9
Rx Functions (block diagram)
CODEC
RxFIFORxDMA
Fifo
AH
B M
aste
r(W
rite)
RMAPResponse
(32Byte)
DLA, RMAP
TransferReq
RxClkto
BusClk(64 bit)
SPWRegionFSM
(8*4Byte)
BusRegionFSM
TransferRdy
SPWClkBusClk
RxDmaAddr,Count,Conf
Interrupt
RxChannel Registers,one set for each DLA(RMAP uses one of the sets)
CRC8check
RMAP ReadAddr, Size
SpaceWire link
![Page 10: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/10.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
10
Tx Functions
• Two Tx Channels, Tx(0) reserved for RMAP)
• Arbiter, RMAP TxChannel has highest priority
• Send list memory structure, up to 255 entries for each Tx Channel sendlist structure allows separate handling of header and raw data.
• CRC8 Generation in HW, for RMAP packets only
• AHB Master (Read only)
• High speed, over clock region transfers>200MBit Data transfer rate using 64bit blocks @ 30MHz BusClk and 100MHz TxClk
![Page 11: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/11.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
11
Tx Functions (block diagram)
CODECTxFIFO
TxDMAFifo
AH
B M
aste
r(R
ead)
RMAPResponse
(32Byte)
RMAPReadAddrSize
TransferReq
BusClkto
TxClk(64 bit)
SPWRegionFSM
(TBD Byte)
BusRegionFSM
TransferRdy
SPWClk
BusClk
TxDmaSendList
&Counters
Interrupt
TxChannel Registers,one set for each DLA(RMAP uses one of the sets)
CRC8GenTx
DMAChan.
TxArbiter
RMAPReq
SpaceWire link
![Page 12: SpaceWire Remote Terminal Controller](https://reader030.vdocuments.site/reader030/viewer/2022012701/61a40b7a1789567d36674d39/html5/thumbnails/12.jpg)
This document or software is confidential to Saab Ericsson Space and may not:
a) be used for any purpose other than for which it was supplied;b) be copied or reproduced in whole or in part without the prior written consent of Saab Ericsson Space;c) be disclosed to any third party without the prior written consent of Saab Ericsson Space.
12
TimeCode
CODEC
Reg If
AMBA APB bus
TxTimeReg
TxTimeCtrlReg
TimeCodeEqualCheck
TimeTick
+1
TimeTick (Qualified)
TimeCtrl(2 bits)
RxTimeCnt
RxTimeCtrlReg
+1
TimeCtrl(2 bits)
TimeTick
TimeTick
TimeCtrl(2 bits)
TimeCtrl(2 bits)
SpaceWire link