JKR1
Junior Member level 3
- Joined
- Aug 24, 2015
- Messages
- 29
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 208
temp4 := u_fixed(temp3,3,-4);
** Error: (vcom-11) Could not find ieee.fixed_pkg.
for i in temp'range loop
to_ufixed(temp3(i), 3, -4);
end loop;
for i in 0 to m
if a(i)<0.2 then a(i)=0
elseif a(i)>0.8 then a(i)=1
else a(i)=5/3a(i)-1/3
end if
end loop
Why should Modelsim 6.5 have problems with IEEE fixed point libraries? It's plain VHDL that should be understood by any VHDL compiler version.
** Error: C:/modeltech_6.5c/examples/fixed_pkg_c.vhd(22): Library ieee_proposed not found.
** Error: C:/modeltech_6.5c/examples/fixed_pkg_c.vhd(23): (vcom-1136) Unknown identifier "ieee_proposed".
** Error: C:/modeltech_6.5c/examples/fixed_pkg_c.vhd(25): VHDL Compiler exiting
what do u mean by non-trivial?Why are you dividing by 100? that is a non-trivial divide. Why cant you do it with a multiply instead (* 1/100)?
I have these errors :the fixed_pkg_c.vhd compiles code into the ieee_proposed library. you will either need to create this in modelsim with the command:
vlib ieee_proposed
and then compile the fixed_pkg_c.vhd into that library:
vcom fixed_pkg_c.vhd -work ieee_proposed
what is the difference between (a/255) or a*(1/255)??But a multiplier is much better as most FPGAs now have dedicated multipliers so they use little logic and can run very fast with low latency (usually 1 clock).
No. (1/255) is a constant calculated at compile time (of course presuming fixed point number system). Perhaps you should simply try both variants in synthesized hardware (after translating it from pseudocode to real HDL) and compare the resource utilization.both of them have dividing
#create ieee_proposed library
vlib ieee_proposed
#compile file into that library
vcom fixed_float_types.vhd -work ieee_proposed
sorry but I didnt get what u mean?temp4(i) := --convert ufixed to std_logic_vector
thanks for answering.
sorry but I didnt get what u mean?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?