Info

This question is closed. Reopen it to edit or answer.

Are there enough resources in a Kintex7 160T for my Simscape Electrical model ?

1 view (last 30 days)
Hello,
I am working on generating the HDL code from a Simulink Electrical model to run it on a Kintex7 160T FPGA. In the Simscape HDL Workflow Advisor, the "Get state-space parameters" step gives me the following results:
Summary of the state-space representation:
Number of states: 115
Number of inputs: 21
Number of outputs: 17
Number of modes: 9934
Discrete sample time: 2e-07
Parameter Parameter size
A 115 x 115 x 9934
B 115 x 21 x 9934
F0 115 x 1 x 9934
C 17 x 115 x 9934
D 17 x 21 x 9934
Y0 17 x 1 x 9934
Do you know if there will be enough resources in a Kintex7 160T to hold this model in a fixed-point format ?

Answers (1)

Kiran Kintali
Kiran Kintali on 10 Aug 2020
Can you share a mat file with A,B,C,D,F0,Y0 values shown above? It depends if the matrix is largely sparse or has all non-zero values.
Kintex7 160T is one of the smaller parts in terms of available DSP resources.
Considering all the elements of the state space parameters to be non-zero elements the number of adders and multipliers required would be
  • A Adders:13110,Muls:13225
  • B Adders:2300,Muls:2415
  • C Adders:1938,Muls:1955
  • D Adders:340,Muls:357
This adds up to 17688 Adders and 17952 Muls. With maximum sharing factor sharing all the resources it may be tough to fit this model.
To accurately answer this question we would need sparsity information of the matrix and allowable latency in the system to maximal sharing necessary to finish the compuation. Also share expected switching frequency and throughput and other higher level design goals.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!