Energy consumption model for 5G NR LDPC encoder circuit?

4 visualizaciones (últimos 30 días)
Chetan Fadnis
Chetan Fadnis el 20 de Nov. de 2023
Comentada: Chetan Fadnis el 8 de En. de 2024
I am working with the MATLAB encoders and decoders for LDPC coding, can you please help me how to find the energy consumption for same? with some expression, (static and dynamic power)

Respuestas (1)

Manikanta Aditya
Manikanta Aditya el 8 de En. de 2024
Hi Chetan,
As per my understanding, you are working with the MATLAB encoders and decoders for LDPC coding, you are interested to know how to find the energy consumption for same? with some expression, (static and dynamic power).
In MATLAB, there isn't a direct function to measure the energy consumption of LDPC (Low-Density Parity-Check) encoders and decoders. Energy consumption is typically a hardware-related metric, and MATLAB primarily operates at a higher level, focusing on algorithm simulation and data processing.
However, you can estimate the energy consumption by considering the computational complexity of the LDPC algorithms and the hardware specifications on which the algorithms are executed.
  • Static Power (P_static): This is the power consumed by the circuit when it is not switching. It is due to leakage currents in the transistors and does not depend on the activity of the circuit
PLeakage = f (Vdd, Vth, W/L)
% W is transistor width
% L is transistor length
  • Dynamic Power (P_dynamic): This is the power consumed due to the charging and discharging of capacitive loads when the transistors switch states. It is proportional to the activity factor (α), the capacitance being switched (C), the square of the supply voltage (V^2), and the switching frequency (f):
>> P_dynamic = α * C * V^2 * f
% alpha is the switching activity,
% f is the switching frequency,
% C is the effective capacitance, and
% Vdd​ is the supply voltage1.
Here is an example code showing how you can do it:
% Define parameters
alpha = 0.1; % Activity factor (example value)
C = 1e-12; % Capacitance in Farads (example value)
V = 1.2; % Supply voltage in Volts (example value)
f = 1e9; % Switching frequency in Hz (example value)
% Estimate dynamic power consumption
P_dynamic = alpha * C * V^2 * f;
% Measure execution time of LDPC encoder/decoder
tic;
% Call your LDPC encode/decode functions here
toc;
Elapsed time is 0.000791 seconds.
T = toc; % Time in seconds
% Assuming static power is negligible or known
P_static = 0; % Static power in Watts (replace with actual value if available)
% Calculate energy consumption
E = (P_static + P_dynamic) * T;
fprintf('Estimated energy consumption: %f Joules\n', E);
Estimated energy consumption: 0.000001 Joules
Please refer to the following references to know more about the query:
I hope this resolves the issue you were facing.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by