URL
https://opencores.org/ocsvn/viterbi_decoder_axi4s/viterbi_decoder_axi4s/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 4 |
Line 51... |
Line 51... |
-- This function calculates the initialization values for trellis metrics.
|
-- This function calculates the initialization values for trellis metrics.
|
-- The values are used as a constant and written to the ACS unit, every time a new block arrives.
|
-- The values are used as a constant and written to the ACS unit, every time a new block arrives.
|
--
|
--
|
function calc_initialize return t_node_s;
|
function calc_initialize return t_node_s;
|
|
|
constant PREVIOUS_STATES : t_previous_states := calc_previous_states;
|
constant PREVIOUS_STATES : t_previous_states;
|
constant TRANSITIONS : t_transitions := calc_transitions;
|
constant TRANSITIONS : t_transitions;
|
constant INITIALIZE_TRELLIS : t_node_s := calc_initialize;
|
constant INITIALIZE_TRELLIS : t_node_s;
|
|
|
end package pkg_trellis;
|
end package pkg_trellis;
|
|
|
|
|
package body pkg_trellis is
|
package body pkg_trellis is
|
Line 175... |
Line 175... |
v_initialize(i) := to_signed(- 2 ** (BW_MAX_PROBABILITY - 2), BW_MAX_PROBABILITY);
|
v_initialize(i) := to_signed(- 2 ** (BW_MAX_PROBABILITY - 2), BW_MAX_PROBABILITY);
|
end loop;
|
end loop;
|
return v_initialize;
|
return v_initialize;
|
end function calc_initialize;
|
end function calc_initialize;
|
|
|
|
|
|
constant PREVIOUS_STATES : t_previous_states := calc_previous_states;
|
|
constant TRANSITIONS : t_transitions := calc_transitions;
|
|
constant INITIALIZE_TRELLIS : t_node_s := calc_initialize;
|
|
|
end package body pkg_trellis;
|
end package body pkg_trellis;
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.