Mudanças entre as edições de "Operadores Aritméticos em VHDL"
Ir para navegação
Ir para pesquisar
Linha 2: | Linha 2: | ||
Alguns operadores estão definidos implicitamente na linguagem VHDL | Alguns operadores estão definidos implicitamente na linguagem VHDL | ||
<syntaxhighlight lang=vhdl> | <syntaxhighlight lang=vhdl> | ||
+ | -- | ||
function "+" ( a, b: integer ) return integer; | function "+" ( a, b: integer ) return integer; | ||
function "+" (anonymous: real) return real; | function "+" (anonymous: real) return real; | ||
Linha 11: | Linha 12: | ||
=[[Numeric std.vhd | numeric_std]]= | =[[Numeric std.vhd | numeric_std]]= | ||
<syntaxhighlight lang=vhdl> | <syntaxhighlight lang=vhdl> | ||
+ | -- | ||
function "+" (L, R: UNSIGNED) return UNSIGNED; | function "+" (L, R: UNSIGNED) return UNSIGNED; | ||
function "+" (L, R: SIGNED) return SIGNED; | function "+" (L, R: SIGNED) return SIGNED; |
Edição das 21h12min de 10 de maio de 2016
Implícitos
Alguns operadores estão definidos implicitamente na linguagem VHDL
--
function "+" ( a, b: integer ) return integer;
function "+" (anonymous: real) return real;
function "+" (anonymous, anonymous2: real) return real;
function "+" (anonymous1: TIME) return TIME;
function "+" (anonymous1, anonymous2: TIME) return TIME;
numeric_std
--
function "+" (L, R: UNSIGNED) return UNSIGNED;
function "+" (L, R: SIGNED) return SIGNED;
function "+" (L: UNSIGNED; R: NATURAL) return UNSIGNED;
function "+" (L: NATURAL; R: UNSIGNED) return UNSIGNED;
function "+" (L: INTEGER; R: SIGNED) return SIGNED;
function "+" (L: SIGNED; R: INTEGER) return SIGNED;