Ktl-icon-tai-lieu

DSP builder

Được đăng lên bởi hoc-anh-van
Số trang: 12 trang   |   Lượt xem: 1009 lần   |   Lượt tải: 1 lần
Lab 6: DSP Builder Overview
Objective: Utilize the DSP builder to implement a sample project in Simulink then export it to
the FPGA
Reference Guide: DSP Builder User Guide – Section 2: Getting Started Tutorial
This is located in the Altera path in Windows under DSP builder.
Procedure: Creating the Amplitude Modulation Model

Figure 1: Overview of Simulink module

To create the amplitude modulation model, follow the instructions in the following sections.
Create a New Model
To create a new model, perform the following steps:
1. Start the MATLAB software.
2. On the File menu, point to New and click Model to create a new model window.
3. Click Save on the File menu in the new model window.
4. Browse to the directory in which you want to save the file. This directory becomes
your working directory. This tutorial uses the working directory <DSP Builder
install path>\DesignExamples\Tutorials\GettingStartedSinMdl\my_SinMdl.
5. Type the file name into the File name box. This tutorial uses the name singen.mdl.
6. Click Save.
7. Click the MATLAB Start button . Point to Simulink and click Library Browser.
Add the Sine Wave Block
Perform the following steps to add the Sine Wave block:
1. In the Simulink Library Browser, click Simulink and Sources to view the blocks in
the Sources library.
2. Drag and drop a Sine Wave block into your model.
3. Double-click the Sine Wave block in your model to display the Block Parameters
dialog box.
4. Set the Sine Wave block parameters as shown in Table 2–1.

Table 2–1. Parameters for the Sine Wave Block

5. Click OK.
Add the SinIn Block
Perform the following steps to add the SinIn block:
1. In the Simulink Library Browser, expand the Altera DSP Builder Blockset folder
to display the DSP Builder libraries (Figure 2–2).
The first time you do this it might take a while for the files to generate.
2. Select the IO & Bus library.
3. Drag and drop the Input block from the Simulink Library Browser into your
model. Position the block to the right of the Sine Wave block.
4. Click the text under the block icon in your model. Delete the text Input and type
the text SinIn to change the name of the block instance.
5. Double-click the SinIn block in your model to display the Block Parameters
dialog box.
6. Set the SinIn block parameters as shown in Table 2–2.
Figure 2–2. Altera DSP Builder Folder in the Simulink Library Browser

7. Click OK.
8. Draw a connection line from the right side of the Sine Wave block to the left side
of the SinIn block b...
Lab 6: DSP Builder Overview
Objective: Utilize the DSP builder to implement a sample project in Simulink then export it to
the FPGA
Reference Guide: DSP Builder User Guide – Section 2: Getting Started Tutorial
This is located in the Altera path in Windows under DSP builder.
Procedure: Creating the Amplitude Modulation Model
Figure 1: Overview of Simulink module
To create the amplitude modulation model, follow the instructions in the following sections.
Create a New Model
To create a new model, perform the following steps:
1. Start the MATLAB software.
2. On the File menu, point to New and click Model to create a new model window.
3. Click Save on the File menu in the new model window.
4. Browse to the directory in which you want to save the file. This directory becomes
your working directory. This tutorial uses the working directory <DSP Builder
install path>\DesignExamples\Tutorials\GettingStartedSinMdl\my_SinMdl.
5. Type the file name into the File name box. This tutorial uses the name singen.mdl.
6. Click Save.
7. Click the MATLAB Start button . Point to Simulink and click Library Browser.
Add the Sine Wave Block
Perform the following steps to add the Sine Wave block:
1. In the Simulink Library Browser, click Simulink and Sources to view the blocks in
the Sources library.
2. Drag and drop a Sine Wave block into your model.
3. Double-click the Sine Wave block in your model to display the Block Parameters
dialog box.
4. Set the Sine Wave block parameters as shown in Table 2–1.
DSP builder - Trang 2
Để xem tài liệu đầy đủ. Xin vui lòng
DSP builder - Người đăng: hoc-anh-van
5 Tài liệu rất hay! Được đăng lên bởi - 1 giờ trước Đúng là cái mình đang tìm. Rất hay và bổ ích. Cảm ơn bạn!
12 Vietnamese
DSP builder 9 10 983