![]() |
|
|
|
#1 |
|
How do we do implement the exponent function "6" in VHDL, i.e. as in 2^3=8.
cheers Kwaj |
|
|
|
|
#2 |
|
Posts: n/a
|
On Thu, 19 Aug 2004 20:32:55 +1000, "Kwaj"
<> wrote: >How do we do implement the exponent function "6" in VHDL, i.e. as in 2^3=8. I assume you missed the shift key and actually meant "^" instead of "6". The VHDL operator for exponentiation is **, e.g. x**y Many other languages use the same symbol, e.g. Verilog, Fortran, etc. All simulators will support it. Synthesisers will probably support it for any values of x and y if x and y are both constant, but probably not support it if x isn't a constant. If x is a constant and also a power of 2 (e.g. 2 or 4, etc.) then most synthesisers will support variable y. Regards, Allan. Allan Herriman |
|
|
|
#3 |
|
Posts: n/a
|
Hi,
U can implement the same by just pressing the * key 2 times ie. 2**3 I think it is helpfull 2 u . Regards anupam |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute an external software from VHDL? And how to interface VHDL with JAVA? | becool_nikks | Software | 0 | 03-06-2009 07:08 PM |
| reading mp3 file in binary format in vhdl | latheesh | General Help Related Topics | 0 | 02-05-2008 05:40 AM |
| Help on auto conversion from Matlab to vhdl on filter design | hardheart | Hardware | 0 | 12-07-2007 09:19 AM |
| VHDL RAM help!:) | lastval | Hardware | 0 | 11-09-2007 01:40 PM |
| ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL | freitass | Hardware | 0 | 11-01-2007 03:44 PM |