Aug 31, 2011 #1 D debalina Junior Member level 2 Joined Jul 22, 2011 Messages 23 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,428 sir i want to multiply 5.75 * 6.5.for that i use fixed_pkg,but in simulation it takes 5.75 as 6 and 6.5 as 7 and gives 42. ihave attched program with simulation result.plz fix he problem sir. Attachments module joy.doc 34.5 KB · Views: 46
sir i want to multiply 5.75 * 6.5.for that i use fixed_pkg,but in simulation it takes 5.75 as 6 and 6.5 as 7 and gives 42. ihave attched program with simulation result.plz fix he problem sir.
Aug 31, 2011 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,435 Helped 14,752 Reputation 29,786 Reaction score 14,107 Trophy points 1,393 Location Bochum, Germany Activity points 298,167 It's not the right way to use fixed_pkg. Consult the user manual about conversion functions.
Aug 31, 2011 #3 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 Why are you using a verilog testbench with a VHDL entity? wouldnt it be easier to stick to one language?
Why are you using a verilog testbench with a VHDL entity? wouldnt it be easier to stick to one language?