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

L2SDP-61 : Added function RESET_DP_SOSI_CTRL(), it works in sim with...

L2SDP-61 : Added function RESET_DP_SOSI_CTRL(), it works in sim with dp_pipeline.vhd, but not tried on HW yet.
parent 2a8ea1a2
No related branches found
No related tags found
1 merge request!28Master
......@@ -233,6 +233,9 @@ PACKAGE dp_stream_pkg Is
SIGNAL siso_arr : IN t_dp_siso_arr;
SIGNAL ready_reg : INOUT STD_LOGIC_VECTOR);
-- Reset only the control fields of the DP sosi record
FUNCTION RESET_DP_SOSI_CTRL(sosi : t_dp_sosi) RETURN t_dp_sosi;
-- Resize functions to fit an integer or an SLV in the corresponding t_dp_sosi field width
-- . Use these functions to assign sosi data TO a record field
-- . Use the range selection [n-1 DOWNTO 0] to assign sosi data FROM a record field to an slv
......@@ -455,6 +458,17 @@ PACKAGE BODY dp_stream_pkg IS
BEGIN
proc_dp_siso_alert(1, clk, sosi_arr, siso_arr, ready_reg);
END proc_dp_siso_alert;
-- Reset only the control fields of the DP sosi record
FUNCTION RESET_DP_SOSI_CTRL(sosi : t_dp_sosi) RETURN t_dp_sosi IS
VARIABLE v_sosi : t_dp_sosi := sosi;
BEGIN
v_sosi.sync := '0';
v_sosi.valid := '0';
v_sosi.sop := '0';
v_sosi.eop := '0';
RETURN v_sosi;
END RESET_DP_SOSI_CTRL;
-- Resize functions to fit an integer or an SLV in the corresponding t_dp_sosi field width
FUNCTION TO_DP_BSN(n : NATURAL) RETURN STD_LOGIC_VECTOR IS
......
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