ssrk1050
Newbie level 3
For simulating exponential function in verilog, I used ** operator in modelsim but i could not implement it. Can you tell me how to ***** exponential function using verilog?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
For simulating exponential function in verilog, I used ** operator in modelsim but i could not implement it. Can you tell me how to ***** exponential function using verilog?
Th OP mentioned he's trying to simulate.
Suppose we're trying to do x^4 (and 4 is a power of 2...) - how can you calculate the result by simply shifting ?And if it turns out that your exponent is a power of 2, you should be using the shift operator, which is synthesizable.