필터 지우기
필터 지우기

Coverting Matlab Code to VHDL Using HDL

조회 수: 1 (최근 30일)
Tamer
Tamer 2016년 3월 7일
댓글: Walter Roberson 2016년 3월 9일
Hello There,
I'm converting Matlab Code (.m) to VHDL using the HDL Code. In my program, there are 30 variables. All of them are arrays [double (1x410)]
I had to convert all the variables to fixed-point numeric Ex: x= fi (x,true,8,4)
The problem is :
After I converted the Program to VHDL. I found the variables represented in 34 bits as showing below.
How could I present the variables in 8 or 16 bits maximum instead of 34 bits ?
Summary
-------------
Multipliers: 5330
Adders/Subtractors: 11070
Registers: 0
RAMs: 0
Multiplexers: 8200
----------------
Multipliers (5330)
---------------
16x16-bit Multipliers : 2050
real x real Multipliers : 1230
16x17-bit Multipliers : 410
18x16-bit Multipliers : 410
34x16-bit Multipliers : 410
50x16-bit Multipliers : 410
17x17-bit Multipliers : 410
Adders/Subtractors (11070)
----------------------
34x34-bit Adders : 410
16x1-bit Adders : 3690
32x1-bit Adders : 410
17x17-bit Adders : 820
64x64-bit Adders : 410
32x32-bit Adders : 2870
real Subtractors : 410
18-bit Subtractors : 410
18x18-bit Subtractors : 820
17x17-bit Subtractors : 410
19-bit Subtractors : 410
Multiplexers (8200)
33-bit 3-to-1 Multiplexer : 410
16-bit 3-to-1 Multiplexer : 4100
32-bit 2-to-1 Multiplexer : 1230
17-bit 3-to-1 Multiplexer : 1230
32-bit 3-to-1 Multiplexer : 410
41-bit 2-to-1 Multiplexer : 410
18-bit 3-to-1 Multiplexer : 410
Thanks,

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 7일
Fixed Point Designer should be able to analyze and make suggestions and adjustments.
  댓글 수: 2
Tamer
Tamer 2016년 3월 9일
Walter,
I need you help to force the variables to be implemented in 4 or 8 bits Maximum. I tried to round the variables but it didn't fix it 100%
Some variables still has numerictype (1,73,45) or (1,33,30).
I need your help to know what could I do get this numeric types presented in 8 bits
Thanks,
Walter Roberson
Walter Roberson 2016년 3월 9일
Sorry, I do not have that toolbox myself, so I am not familiar with any tricks or limitations.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by