The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Real numbers multiplication https://designers-guide.org/forum/YaBB.pl?num=1172699938 Message started by ihabraad on Feb 28th, 2007, 1:58pm |
Title: Real numbers multiplication Post by ihabraad on Feb 28th, 2007, 1:58pm Verilog question (Tripoli – Lebanon) Real numbers multiplication Hi; I nead a help for a verilog simulation program: I am trying to do a real numbers multiplier in verilog simulation code using ModelSim simulator (without schematic). The Problem is that Verilog doesn’t accept to define an input as real (register) and when I try to use intermediate real registers before multiplying and put the result also in a real register; verilog around them to integers!!!! L I am very sad…. :’-( Plz any help? Ihab – Lebanon (University of Balamand) 10xU respectfully |
Title: Re: Real numbers multiplication Post by Ken Kundert on Feb 28th, 2007, 10:17pm In Verilog you can use a 64-bit bus to pass real-valued signals. Then you use real2bits() to convert the real number into the 64 bits, and bits2real() to convert back. -Ken |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |