In the PLATO normal-camera DPU, a communications FPGA collects the images from the camera front-ends over SpaceWire, and the GR712RC LEON3FT processor has to read them.
This evaluation, done at IAA-CSIC in February 2016, tested the simplest bridge between the two: an FPGA block that answers the processor's SDRAM bus exactly like a memory chip.
PLATO is ESA's mission to find and characterise Earth-like planets around Sun-like stars, with 26 cameras on a single platform. Each group of normal cameras is served by a Data Processing Unit (N-DPU) that receives the raw images, processes them on board and passes the results on.
In the architecture under study the N-DPU had two main devices:
The open question was how the processor would get at the data held by the FPGA.
The GR712RC already has an SDRAM controller on its memory bus. If the FPGA answers that bus as if it were an SDRAM device, the processor can read and write FPGA registers and buffers with ordinary memory accesses, with no extra interface core and no driver beyond a memory map. A separate line raises interrupts when new data is ready.
The address lines then act as an index into the data held by the FPGA.
sdramBusSlave is a VHDL entity with exactly the pins of an SDRAM chip: data, address, bank, clock, clock enable, chip select, RAS, CAS, WE and data mask. Inside, it decodes the SDRAM commands and behaves like the memory the controller expects.
The generics follow a PC133 (-75) SDRAM with CAS latency 2, the same device used in the testbench:
| tCK | 10 ns clock period |
| tRCD / tRP | 20 ns row-to-column delay and precharge |
| tRAS / tRC | 44 ns / 66 ns |
| tAC | 6 ns access time from clock |
| tMRD | 2 cycles after mode register load |
The interface was verified in ModelSim inside a small GRLIB system: Gaisler's SDRAM controller drives the bus, the GRLIB AMBA Test Framework generates the AHB transfers, and a Micron MT48LC16M16A2 behavioural model sits next to the FPGA block as a reference.
Verification was by inspection: the waveforms and the ModelSim log show every transaction and its data. The log of the burst test:
ACT, the controller writes consecutive columns. The FPGA block decodes the command (Operation = WRITE) and receives its 16-bit half of each 32-bit word (0x4567, 0xCDEF, 0xBA98, 0x3210).
0x0223), then the write and read transactions.The structural version was synthesised and placed with Microsemi Libero / Designer for the Axcelerator family, the commercial counterpart of the radiation-tolerant RTAX, and a post-layout simulation was run with the back-annotated netlist.
First version of the interface and pin constraints.
Testbench, stimulus and Doxygen documentation; functional and post-synthesis simulation working.
Structural version of the interface, ready for the command execution and state machine updates.
| hdl/ | sdramBusSlave.vhd (behavioural and structural architectures), configuration and PLATO packages, and the Micron SDRAM model. |
| stimulus/ | GRLIB testbench with the SDRAM controller and AMBA Test Framework. |
| simulation/ | ModelSim scripts for functional and post-synthesis runs, and waveform setups. |
| constraint/, designer/ | Pin and timing constraints, place-and-route results and back-annotated netlist. |
| doc/ | Doxygen documentation generated from the VHDL. |
The source repository is private. For access, please contact IAA-CSIC at jmgomez@iaa.es.