matlab to vhdl conversion

i want to write a matlab code for an user defined input for finding rise time,peak time and fall time which i then need to convert to vhdl. Input can be upto 16bit.

4 件のコメント

Geoff Hayes
Geoff Hayes 2015 年 1 月 1 日
Yash - what have you tried so far?
yash sharma
yash sharma 2015 年 1 月 2 日
編集済み: Geoff Hayes 2015 年 1 月 2 日
i have used interpolation to find the rise time n peak time for already defined values but this cannot be converted to vhdl so we need some variables
x=-4:4;
y=[0 0.15 0.4 1.2 2.3 2.36 1.3 0.9 0]
cs=spline(x,[0 y 0]);
plot(x,y,'o');
x2=interp1(x(1:4),y(1:4),0.9,'spline')
x1=interp1(x(1:4),y(1:4),0.1,'spline')
xr=x2-x1
x4=interp1(x(5:9),y(5:9),0.1,'spline')
x3=interp1(x(5:9),y(5:9),0.9,'spline')
xf= x4-x3
As it can be seen i have defined y already with some numbers so in place of that i want to use y1,y2,y3..so on
Geoff Hayes
Geoff Hayes 2015 年 1 月 2 日
Are y1, y2, etc. vectors or just scalars? If you want to use them in place of y then why not do so?
yash sharma
yash sharma 2015 年 1 月 4 日
y1 y2 etc correspond to scalar values they are each a bit like 0 or 1

サインインしてコメントする。

回答 (1 件)

mouh nyquist
mouh nyquist 2015 年 1 月 2 日

0 投票

there is a gooood file in matlab file exchange ; I hope that will help you

2 件のコメント

yash sharma
yash sharma 2015 年 1 月 4 日
file named what?
mouh nyquist
mouh nyquist 2015 年 1 月 16 日
tape vhdl ; all the best

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2015 年 1 月 1 日

コメント済み:

2015 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by