Doubt in Verilog Data types

P

priya

Guest
Hi All,

I am writing a Verilog Code for Polyphase FIR Filter.In that i
need to give one of the input is taps valus.here i want to give the
taps values in the form of real array type.But as far as i know verilog
simulator dosnt support real array type.


for example taps value is {0.7,0.3,0.9}

how can i give the above tap values in verilog code...
if anyone have answer,plz let me know....


regards,
priya
 
Hi


Thanks for ur replay.....But i want to give real array type input
into the verilog Code. does Verilog simulator support real array type?

U mentioned that fixed point number method ...here i dont know how we
can use this one in verilog code..if u know the answer ,plz explain me.




thanks
priya
 
Hi...


I am not using real type as a verilog input ports .....my
verilog code like the below one.

module top;
real a;
real b;
initial
begin
a=12.3;
b=a;
$display("the b val is %f",b);
end
endmodule



This code was running using icarus simulator...Here i want to use real
array..

like this real myarray [1:10];

but icarus simulator give error while using real array type...

is there any other way to use real array type in icarus
simulator.......



regards,
priya
 
Priya,
Not elegant, but a do-able solution is to use flatten the array
elements into individual signals such as:

real my_real_0, my_real_1...

Sure a no-brainer solution, but we get what we pay for - icarus is far
better for the price we pay!! (Infact best simulator I've seen for
free).

I hope you aren't trying to model a synthesisable design here.
Synthesis won't like real usually.

Aji
http://www.noveldv.com
 

Welcome to EDABoard.com

Sponsor

Back
Top