--- Quote Start ---
Yes I can use SOPC an QSYS features with QII
--- Quote End ---
That's good.
--- Quote Start ---
Yes I have knowledges in VHDL, but not in verylog
--- Quote End ---
That's good either.
--- Quote Start ---
But I don't know how to use SOPC. I have to place all component (UART and serail device)?
--- Quote End ---
If you wish to extend your commanding by MATLAB in the future, is suggest that you implement
a NIOSIIe (the simplest) and a UART-Peripheral.
I recommend QSYS, because it (has already) superseded SOPC.
I'm not sure if ALTERA is provide a GPIO-Peripheral. This could be used to drive the LED-Pin.
You'll have to to create a QSYS-system with
NIOSIIe: Instruction Avalon Master -> On-Chip RAM that holds you code
NIOSIIe: Data Avalon Master -> GPIO-Peripheral Avalon Slave
NIOSIIe: Data Avalon Master -> UART-Peripheral Avalon Slave
After you've successfull described you system and build it, you'll have to instantiate it in a top-level (V)HDL Wrapper (or BSF) in QII.
After that worked you'll have to write your NIOSII-SW based on the Board-Support-Package QSYS created for you.
I guess that will be no simple task.
Do you need to control the board directly via MATLAB or is a command window sufficient? That would generate significant less
work in the FPGA, because you could exclude the NIOS and the SW part.
In that case you'll have to to create a QSYS-system with
JTAG-UART-Peripheral Avalon Master -> GPIO-Peripheral Avalon Slave
After you've successfull described you system and build it, you'll have to instantiate it in a top-level (V)HDL Wrapper (or BSF) in QII.
You could split your task in two phases:
1. Implemented the JTAG-UART based solution (gaining QSYS basic knowledge and establish a commanding interface to the PC)
2. Implement the NIOSIIe based solution (developing the sophisticated solution based on the knowledge gained in 1.)