PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: bankruptcy

Verilog - Operators

Verilog - OperatorsIVerilog Operators operate on several data types to produce an outputINot all Verilog Operators are synthesible (can produce gates)ISome Operators are similar to those in the C languageIRemember, you are making gates, not an algorithm (in most cases) Verilog - OperatorsArithmetic OperatorsIThere are two types of Operators : binary and unaryIBinary Operators :Iadd(+), subtract(-), multiply(*), divide(/), power(**), modulus(%)//suppose that: a = 4 b0011;// b = 4 b0100;// d = 6; e = 4; f = 2;//then,a + b //add a and b; evaluates to 4 b0111b - a //subtract a from b; evaluates to 4 b0001a * b //multiply a and b; evaluates to 4 b1100d / e //divide d by e, evaluates to 4 b0001.

Verilog - Operators Arithmetic Operators (cont.) I Unary operators I Operators "+" and "-" can act as unary operators I They indicate the sign of an operand i.e., -4 // negative four +5 // positive five!!! Negative numbers are represented as 2’s compliment numbers !!!

Loading..

Tags:

  Operator, Verilog, Verilog operators

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Verilog - Operators

Related search queries