STAGE I.N.F.N. L.N.F. 2014

26
STAGE STAGE I.N.F.N. L.N.F. I.N.F.N. L.N.F. 2014 2014 Studenti: Andrea Anitori, Adriano Studenti: Andrea Anitori, Adriano D’Aguanno D’Aguanno Tutor aziendale: Alessandro Balla. Tutor aziendale: Alessandro Balla. Tutor: prof. Mauro Malatesta. Tutor: prof. Mauro Malatesta.

description

STAGE I.N.F.N. L.N.F. 2014. Studenti: Andrea Anitori, Adriano D’Aguanno Tutor aziendale: Alessandro Balla. Tutor: prof. Mauro Malatesta. What we are going to show you. General view of the board SoC FPGA (System on Chip Field Programmable Gate Array). Explanation of the software ISE. - PowerPoint PPT Presentation

Transcript of STAGE I.N.F.N. L.N.F. 2014

Page 1: STAGE  I.N.F.N.   L.N.F.  2014

STAGESTAGE I.N.F.N. L.N.F. I.N.F.N. L.N.F.

20142014Studenti: Andrea Anitori, Adriano Studenti: Andrea Anitori, Adriano

D’AguannoD’Aguanno

Tutor aziendale: Alessandro Balla.Tutor aziendale: Alessandro Balla.

Tutor: prof. Mauro Malatesta. Tutor: prof. Mauro Malatesta.

Page 2: STAGE  I.N.F.N.   L.N.F.  2014

What we are going to What we are going to show youshow you General view of the board SoC FPGA (System on Chip General view of the board SoC FPGA (System on Chip

Field Programmable Gate Array).Field Programmable Gate Array). Explanation of the software ISE.Explanation of the software ISE. Language VHDL(Language VHDL(VHSIC Hardware Description Language).). Explanation of the software XPS (Xilinx Platform Studio).Explanation of the software XPS (Xilinx Platform Studio). General description of the procedure to create an General description of the procedure to create an

embedded processor.embedded processor. How to create a peripheral.How to create a peripheral. Frequency meter.Frequency meter. Module. Module. Test Bench.Test Bench. UCF(User Constraints File).UCF(User Constraints File). How to connect a peripheral to the processor throught How to connect a peripheral to the processor throught

the bus PLB(Processor Local Bus).the bus PLB(Processor Local Bus). How to import a personal peripheral.How to import a personal peripheral.

Description of the software SDK(Software Development Description of the software SDK(Software Development Kit).Kit).

Page 3: STAGE  I.N.F.N.   L.N.F.  2014

SoC FPGASoC FPGA(System on Chip (System on Chip

Field Programmable Gate Field Programmable Gate Array)Array)

It’s a programmable chip.It’s a programmable chip. It’s mounted on a board.It’s mounted on a board. It’s linked to other devices like It’s linked to other devices like

displays, switches, buttons, ethernet displays, switches, buttons, ethernet gates, USB gates…gates, USB gates…

Page 4: STAGE  I.N.F.N.   L.N.F.  2014

FPGAFPGA(Field Programmable Gate (Field Programmable Gate

Array)Array)

FPGAFPGA

DisplayDisplay

Ethernet gateEthernet gate

ClockClock

SwitchesSwitches

ButtonsButtonsUSB gateUSB gate

VGA gateVGA gate

Serial Serial portsports

(RS 232)(RS 232)

ExpansionExpansionconnectorsconnectors

Page 5: STAGE  I.N.F.N.   L.N.F.  2014

ISEISE ISE is the software which is used to ISE is the software which is used to

program the FPGA.program the FPGA.

Page 6: STAGE  I.N.F.N.   L.N.F.  2014

VHDL (VHDL (VHSIC Hardware Description Language ) )

It is one of It is one of the most the most used used programminprogramming language g language for the for the digital digital electronic electronic systems(like systems(like SoC FPGA).SoC FPGA).

VHDL moduleVHDL module

Page 7: STAGE  I.N.F.N.   L.N.F.  2014

XPS (Xilinx Platform XPS (Xilinx Platform Studio)Studio)

It is the software to create an It is the software to create an embedded processor. embedded processor.

Page 8: STAGE  I.N.F.N.   L.N.F.  2014

How to create an embedded How to create an embedded processor processor

What is an embedded processor?What is an embedded processor?

An embedded processor is a processor An embedded processor is a processor that is inside the FPGA.that is inside the FPGA.

Creating one is very easy!Creating one is very easy!

Page 9: STAGE  I.N.F.N.   L.N.F.  2014

How to create an embedded How to create an embedded processorprocessor

You must create a new source in the You must create a new source in the software ISE.software ISE.

Page 10: STAGE  I.N.F.N.   L.N.F.  2014

How to create an embedded How to create an embedded processorprocessor

Select the option “embedded Select the option “embedded processor”.processor”.

Page 11: STAGE  I.N.F.N.   L.N.F.  2014

How to create a How to create a peripheralperipheral

What is a peripheral?What is a peripheral?

A peripheral is a component used to A peripheral is a component used to communicate to the processor. communicate to the processor.

Also creating a peripheral isn’t Also creating a peripheral isn’t difficult, just follow a few difficult, just follow a few

instructions.instructions.

Page 12: STAGE  I.N.F.N.   L.N.F.  2014

How to create a How to create a peripheralperipheral

Select the option “hardware”, and Select the option “hardware”, and clic on “Create or import clic on “Create or import peripheral”…peripheral”…

Page 13: STAGE  I.N.F.N.   L.N.F.  2014

How to create a How to create a peripheralperipheral

……select the option “Create select the option “Create templates for a new peripheral”… templates for a new peripheral”…

Page 14: STAGE  I.N.F.N.   L.N.F.  2014

How to create a How to create a peripheralperipheral

… … and set up the peripheral.and set up the peripheral.

Page 15: STAGE  I.N.F.N.   L.N.F.  2014

Frequency meterFrequency meter

It is our custom It is our custom peripheral that that counts the input in a determinatecounts the input in a determinate gategate (time span). (time span).

It is composed by four channels of It is composed by four channels of input.input.

It shows the output on the board’s It shows the output on the board’s display.display.

Page 16: STAGE  I.N.F.N.   L.N.F.  2014

Test BenchTest Bench

While a module is While a module is used to create the used to create the code for a code for a peripheral, the peripheral, the Test Bench is used Test Bench is used to simulate the to simulate the peripheral.peripheral.

Page 17: STAGE  I.N.F.N.   L.N.F.  2014

Test Bench-simulationTest Bench-simulation The simulation waveform are shown inside ISEThe simulation waveform are shown inside ISE

Page 18: STAGE  I.N.F.N.   L.N.F.  2014

UCF (User Constraint UCF (User Constraint File)File)

It is the area where you can link the It is the area where you can link the logical ports to the physical ports on logical ports to the physical ports on the board.the board.

Page 19: STAGE  I.N.F.N.   L.N.F.  2014

How to connect a How to connect a peripheral to the processorperipheral to the processor

It is possible to connect a peripheral to It is possible to connect a peripheral to the processor through the bus the processor through the bus PLB(Processor Local Bus).PLB(Processor Local Bus).

Page 20: STAGE  I.N.F.N.   L.N.F.  2014

How to import a personal How to import a personal peripheralperipheral

Also you can import a peripheral in a Also you can import a peripheral in a project already created.project already created.

The process is similar to that just The process is similar to that just described.described.

Page 21: STAGE  I.N.F.N.   L.N.F.  2014

How to import a personal How to import a personal peripheralperipheral

Select the option “Hardware” and Select the option “Hardware” and clic on “Create or import clic on “Create or import peripheral”. peripheral”.

Page 22: STAGE  I.N.F.N.   L.N.F.  2014

How to import a personal How to import a personal peripheralperipheral

Select the option “Import existing Select the option “Import existing peripheral”.peripheral”.

Page 23: STAGE  I.N.F.N.   L.N.F.  2014

How to import a personal How to import a personal peripheralperipheral

Finally choose the peripheral.Finally choose the peripheral.

Page 24: STAGE  I.N.F.N.   L.N.F.  2014

SDK (Software SDK (Software Development Kit)Development Kit)

It is the application used to develop It is the application used to develop the software used by the embedded the software used by the embedded platform in XPS.platform in XPS.

The programming language it uses is The programming language it uses is ‘C’.‘C’.

Page 25: STAGE  I.N.F.N.   L.N.F.  2014

SDK (Software SDK (Software Development Kit)Development Kit)

Our embedded processor , implemented in this project, Our embedded processor , implemented in this project, reads the values from our frequency meter, and puts reads the values from our frequency meter, and puts them in output on the board’s display.them in output on the board’s display.

We used SDK to program the display of the board.We used SDK to program the display of the board.

The on board display shows the value in Hertz(Hz) of The on board display shows the value in Hertz(Hz) of each channel.each channel.

Page 26: STAGE  I.N.F.N.   L.N.F.  2014

Thank you forThank you foryour attention.your attention.

We thank the I.T.S.T. “E. We thank the I.T.S.T. “E. Fermi” and the I.N.F.N. to Fermi” and the I.N.F.N. to

this oppurtunity.this oppurtunity.