Monday, December 16, 2013


Verilog Expression bit length and size


The Verilog HDL uses the bit length of the operands to determine how many bits to use while evaluating an expression.

A self-determined expression is one where the bit length of the expression is solely determined by the
expression itself for example, an expression representing a delay value.


A context-determined expression is one where the bit length of the expression is determined by the bit length of the expression and by the fact that it is part of another expression. For example, the bit size of the right hand side expression of an assignment depends on itself and the size of the left-hand side.

For example: length of   i op j  where i and j are expressions  is max(L(i) , L(j))
and op is +, -, *, / , %, |, &, ^