DSP Builder: Complex Multiplier With Variable Coefficients Using Conventional Representation
This example describes an 18 x 18 signed complex multiplier design in DSP Builder. The complex multiplier is implemented using dedicated DSP blocks and supports variable coefficients. The design example uses the conventional representation for complex multiplication, requiring four multipliers, one adder, and one subtractor:
D = Dr + j*Di { Data }
C = Cr + j*Ci { Coefficient }
R = D*C = Rr + j*Ri { Result }
Rr = Dr*Cr – Di*Ci
Ri = Dr*Ci + Di*Cr
Download the files used in this example:
The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.
Files in the zip download include:
- complex_mult_BF_DSP_Block.mdl—DSP Builder design file implementing 18x18 complex multiplier with variable coefficients
- init.m—MATLAB script to initialize the sampling time, and simulation time
- complex_mul.m—MATLAB script to verify the simulation results in Simulink
Figure 1 shows the top-level diagram of the complex multiplier design example in DSP Builder.
Figure 1. Signed 18 x 18 Complex Multiplier Top-Level Diagram

View Full Size
Table 1 lists the ports and gives a description for each.
| Table 1. Signed Complex Multiplier Port Listing |
| Port Name |
Type |
Description |
DataInI[17:0], DataInQ[7:0] |
Input |
18-bit data inputs to complex multiplier unit |
CoefReal[17:0], CoefImag[17:0] |
Input |
18-bit coefficients to complex multiplier unit |
ResI[36:0], ResQ[36:0] |
Output |
37-bit data output of complex multiplier unit |
Related Links
For more information on related features used in this design example in your project, go to:
Design Examples Disclaimer
These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.
|