- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is any vhdl operators to calculate the power of numbers......
plz help me.. very urgentLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in VHDL you can use the ** operator to get x^y
like this: a <= b ** c; where a, b and c are all integer. But if you want to synthesize it, one of either the B or C values needs to be a constant.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank u sir.
One more doubt is any symblols to do logical operations like and or exor like C programming.... greetings sir- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a <= b xor c;
but you cant do logic operations on integers, because they are not logic types. you have to do them on std_logic/vector/signed/unsigned.
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