Skip to content
Snippets Groups Projects
Commit 3c52759d authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Added func_dp_stream_bsn_set() to set the BSN field in the sosi.

parent 151ad8d0
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,9 @@ PACKAGE dp_stream_pkg Is
-- Functions to combinatorially handle the error field
FUNCTION func_dp_stream_error_set(st_sosi : t_dp_sosi; n : NATURAL) RETURN t_dp_sosi; -- force err = 0, is OK
-- Functions to combinatorially handle the BSN field
FUNCTION func_dp_stream_bsn_set(st_sosi : t_dp_sosi; bsn : STD_LOGIC_VECTOR) RETURN t_dp_sosi;
-- Functions to combine sosi fields
FUNCTION func_dp_stream_combine_info_and_data(info, data : t_dp_sosi) RETURN t_dp_sosi;
......@@ -1144,12 +1147,22 @@ PACKAGE BODY dp_stream_pkg IS
RETURN v_rec;
END func_dp_stream_channel_remove;
FUNCTION func_dp_stream_error_set(st_sosi : t_dp_sosi; n : NATURAL) RETURN t_dp_sosi IS
VARIABLE v_rec : t_dp_sosi := st_sosi;
BEGIN
v_rec.err := TO_UVEC(n, c_dp_stream_error_w);
RETURN v_rec;
END func_dp_stream_error_set;
FUNCTION func_dp_stream_bsn_set(st_sosi : t_dp_sosi; bsn : STD_LOGIC_VECTOR) RETURN t_dp_sosi IS
VARIABLE v_rec : t_dp_sosi := st_sosi;
BEGIN
v_rec.bsn := RESIZE_DP_BSN(bsn);
RETURN v_rec;
END func_dp_stream_bsn_set;
FUNCTION func_dp_stream_combine_info_and_data(info, data : t_dp_sosi) RETURN t_dp_sosi IS
VARIABLE v_rec : t_dp_sosi := data; -- Sosi data fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment