Skip to main content

POSTS

5 posts

Fixed point representation

The fixed point representation consists of the representation of decimal numbers using a binary coding scheme that can’t model exactly all …

Cordic in MATLAB

Let’s z be a 2D point in the space as \(z = x + jy\), if we want to rotate this point a given angle \(\theta\), we get the following …

Rounding in C

1
#define round(x) x >= 0.0 ? (int)(x + 0.5) : ((x - (double)(int)x) >= -0.5 ? (int)x : (int)(x - 0.5))

Example:

 1
 2
 3
 4
 5
 6
 7
 8 …

Operation with different size operands in Verilog/SystemVerilog

When an operation such as an addtion or a substraction is done using different size operands than final variable, it is necessary to extend sign to …

Síntesis digital directa (DDS)

Para generar señales digitales periódicas, como por ejemplo senos o cosenos, se suele utiliza la técnica de síntesis digital directa. Esta consiste en …