Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
hi i want to multiply a float value 0.707 and 3 in binary.....how to convert 0.707 into binary and multiply with binary value of 3......any one help me....
no error occurs during compling....but in wave window wen i give run option the control is directed to the coding in which an arrow is indicating this line
k.r:=(x.r * y.r) - (x.i * y.i);
k.i:=(x.r * y.i) + (x.i * y.r);
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
package math_complex is
type complex is record
r :real;
i :real;
end record;
function CMPLX(x,y: in complex ) return complex;
function mul(x, y: in complex ) return complex;
end...
if i execut this program
i am getting error during run of this code in the lne which is represented in red.....
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
package math_complex is
type complex is record
r :real;
i :real;
end record...
i know to do multiplication of ordinary numbers in vhdl.....but no knowledge about how to represent or do operations in complex numbers(real,imaginary parts)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.