Skip to main content

Rubén Sánchez

Recent Posts

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 …

Phases in UVM

UVM introduces the concept of phases to ensure that all objects are properly configured and connected before starting the runtime simulation. Phases …

How to add UVM in your Verilog test bench

To use UVM in your Verilog test bench, you need to compile the UVM package top. To do so, you need to include it on your file by using:

1
2 …

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 …

Onda estacionaria

Onda estacionaria creada por dos ondas viajeras.

Resolución FFT

\[ \Delta f = \frac{F_s}{N_{samples}} \]

Si por ejemplo, \(F_s = 5GSa/s = 5\cdot10^9Sa/s \) y \(N_{samples} = 25000\), la resolución frecuencial es …