Altera_Forum
Honored Contributor
15 years agomeaning of a pacKage
1)i dont understand the meaning of this package:
package body dwt2dpkg is
function dwt2dctrlvector(x : in type_dwt2d_ctrl_signal_enum) return type_dwt2d_ctrl_signal is
begin
return type_dwt2d_ctrl_signal(to_unsigned(type_dwt2d_ctrl_signal_enum'pos(x), cst_dwt2d_ctrl_sig_bus_width));
end;
end dwt2dpkg;:confused::eek:
2)i dont understand the utility of this code:
type type_dwt2d_state is (
ts2d_ready,
ts2d_init_horiz,
ts2d_start_horiz,
ts2d_continue_horiz,
ts2d_init_vert,
ts2d_start_vert,
ts2d_continue_vert,
ts2d_next_level,
ts2d_terminate
);:confused::confused:
can any one explain it to me. Thinks