- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to use tan and arctan functions in verilog and generate a plot, one like in matlab.
Also , the code should be synthesizable. Can any one suggest how can I code such trigonometric functions in verilog? Awaiting help. Thanks, SusmithaLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should use the Cordic IP core in order to generate complex mathematical functions.
Try to instantiate and simulate the cordic core and configure it such a way that your math functions are generated.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or just precompute the values you need to some resolution, and store them in a ROM lookup table using block RAM.
It all depends on what data format and resolution of computation you need (ie, 16b integer vs 32b floating point require dramatically different logic).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for the suggestions.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page