From REuP Project
(Difference between revisions)
Revision as of 08:17, 20 January 2011 Apiotro (Talk | contribs)
← Previous diff |
Current revision Kprzygod (Talk | contribs)
|
Line 1: |
Line 1: |
- | =HLL to VHDL Conversion Templates= | + | {| border="1" |
| + | |style="background: #f9f9f9" align="center"|'''HLL Expression''' |
| + | |style="background: #f9f9f9" align="center"|'''VHDL Expression''' |
| + | |style="background: #f9f9f9" align="center"|'''Remarks''' |
| + | |+ |
| + | |style="background: #f9f9f9" align="center"|'''variables representation''' |
| + | | |
| + | | |
| + | |+ |
| + | |style="background: #f9f9f9" align="right"|''unsigned integer variable'' |
| + | | |
| + | {| |
| + | |''generic'' (DATA_SIZE: natural := 32); |
| + | |+ |
| + | |''signal'' : std_logic_vector (DATA_SIZE-1 ''downto'' 0); |
| + | |} |
| + | | |
| + | |+ |
| + | |style="background: #f9f9f9" align="right"|''signed integer variable'' |
| + | | |
| + | {| |
| + | |''generic'' (DATA_SIZE: natural := 32); |
| + | |+ |
| + | |''??'' |
| + | |} |
| + | | |
| + | |+ |
| + | |style="background: #f9f9f9" align="right"|''floating point variable'' |
| + | | |
| + | {| |
| + | |''generic'' (DATA_SIZE: natural := 32); |
| + | |+ |
| + | |''??'' |
| + | |} |
| + | | |
| + | |+ |
| + | |style="background: #f9f9f9" align="center"|'''integer arithmetic operations''' |
| + | | |
| + | | |
| + | |+ |
| + | |style="background: #f9f9f9" align="center"|'''floating point arithmetic operations''' |
| + | | |
| + | | |
| + | |+ |
| + | |} |
| + | |
| + | [[Media:Float_ug.pdf|floating point library specification]] |
Current revision
HLL Expression
| VHDL Expression
| Remarks
|
variables representation
|
|
|
unsigned integer variable
|
generic (DATA_SIZE: natural := 32);
|
signal : std_logic_vector (DATA_SIZE-1 downto 0);
|
|
|
signed integer variable
|
generic (DATA_SIZE: natural := 32);
|
??
|
|
|
floating point variable
|
generic (DATA_SIZE: natural := 32);
|
??
|
|
|
integer arithmetic operations
|
|
|
floating point arithmetic operations
|
|
|
floating point library specification