Top Banner
Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University of Technology Maciej Kwiatkowski Supervisor: prof. dr hab. Ryszard Romaniuk dr Krzysztof Poźniak
11

Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Dec 16, 2015

Download

Documents

Eugene Doyle
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Nios implementation in CCD Camera for "Pi of the Sky" experiment

Photonics and Web Engineering Research Group

Institute of Electronics SystemsWarsaw University of Technology

Maciej Kwiatkowski

Supervisor: prof. dr hab. Ryszard Romaniuk

dr Krzysztof Poźniak

Page 2: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Plan of presentation

1. Digital board of CCD camera for „Pi of the Sky” experiment

2. NIOS embedded processor and Avalon bus

3. RTL8169s PCI gigabit ethernet controller

4. Current solution vs Nios implementation

5. Custom PCI arbiter and Avalon bus multimastering

6. Future Plans

Page 3: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Digital board of CCD camera for „Pi of the Sky” experiment

Page 4: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

NIOS embedded processor and Avalon bus

1. Separate instruction and data buses – Harvard architecture.

2. Instruction and data buses implemented as Avalon master ports.

3. The data master port connects to both memory and peripheral components, while the instruction master port connects only to memory components.

4. Memory can be shared and contains both instructions and data.

Page 5: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

RTL8169s PCI gigabit ethernet controller

1. Descriptor based buffer management – three 1024 descriptor rings.

2. Address of descriptor rings is set by software in internal registers.

3. Descriptors consist of pointers to data buffers and additional flags.

4. Descriptors and buffers are placed in system memory.

5. Controller reads packet data from system memory and places it in the internal FIFO or it writes received packet from internal FIFO to system memory.

Page 6: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Current solution

Page 7: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Nios implementation

Page 8: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Nios implementation

Page 9: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Custom PCI arbiter and Avalon bus multimastering

1. PCI arbitration can be controlled by CPU.

2. Data transmission requests from RTL8169s signalized by generating interrupt.

3. Interrupt subroutine should be placed in small on-chip memory.

4. Arbitration can be done on the Avalon bus side.

Page 10: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

NIOS II and RTL8169s development board

Bigger FPGA chip needed to implement NIOS with cache

Page 11: Nios implementation in CCD Camera for "Pi of the Sky" experiment Photonics and Web Engineering Research Group Institute of Electronics Systems Warsaw University.

Future plans

1. Write whole camera software for NIOS II

2. Tests and comparisons of different hardware versions (NIOS with or without cache)

3. Implementation of CCD state machine with FIFO and avalon slave port (after removing NIOS JTAG hardware)