Adding of two signals and convert into vhdl

1 visualización (últimos 30 días)
Rumala Niyathi
Rumala Niyathi el 24 de Nov. de 2018
Respondida: Kiran Kintali el 19 de Oct. de 2020
I have a problem at converting floating point to fixed point ???Can u please help?
function[y] = addsig(x, x1)
fs=100;
N=1000;
A=1000;
dt=1/fs;
t=dt*(0:N-1);
x=A*sin(2*pi*f*t);
x1=A*sin(2*pi*f*t);
y=x+x1;
coder.extrinsic(''plot')
plot(y)
end
  2 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 24 de Nov. de 2018
Editada: madhan ravi el 24 de Nov. de 2018
Any Issue?
have you checked here?
madhan ravi
madhan ravi el 24 de Nov. de 2018
coder.extrinsic(''plot')
^-^----change this
coder.extrinsic('plot')

Iniciar sesión para comentar.

Respuestas (1)

Kiran Kintali
Kiran Kintali el 19 de Oct. de 2020
If you are using autoamted floating point to fixed point conversion tool please share the testbench.
https://www.mathworks.com/help/fixedpoint/ug/fixed-point-conversion.html

Categorías

Más información sobre HDL Coder en Help Center y File Exchange.

Productos


Versión

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by