How to write a coding for imaginary number and decimal point

Status
Not open for further replies.

siva_7517

Full Member level 2
Joined
Jan 16, 2006
Messages
138
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,401
verilog complex number

Hi,

I am currently working on Fast fourier transform in verilog coding for 8 points. How can i write a coding for imiginary number and decimal points in my verilog coding because fft involved complex number. Thanx in advance.

Siva
 

Re: Verilog coding question

I suppose the best way would be to implement a complex number multiplier yourself.
You would have to store the real and imaginary parts in separate variables and use both of them when you need to manipulate them.
 

    siva_7517

    Points: 2
    Helpful Answer Positive Rating
Verilog coding question

make complex number multiplier in 4 real number multiplier, just like this:

(a+jb)(c+jd) = (ac - bd) + j(bc + ad)
 

    siva_7517

    Points: 2
    Helpful Answer Positive Rating
Verilog coding question

I think you can search using google,there may be some examples
 

Verilog coding question

I think so that the opencores.org may be have some FFT source. You can take a look.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…