Skip to content
Snippets Groups Projects
Commit 9d871090 authored by joachim.schmidt's avatar joachim.schmidt
Browse files

Update scalp_firmware for testing.

parent af94a221
No related branches found
No related tags found
No related merge requests found
...@@ -872,7 +872,7 @@ begin ...@@ -872,7 +872,7 @@ begin
-- type t_write_sp_states is (E_WR_SP_IDLE, E_WR_SP_VALID, E_WR_SP_WAIT); -- type t_write_sp_states is (E_WR_SP_IDLE, E_WR_SP_VALID, E_WR_SP_WAIT);
type t_write_sp_states is (E_WR_SP_IDLE, E_WR_SP_VALID_0, E_WR_SP_UNVALID_0, E_WR_SP_VALID_1, E_WR_SP_WAIT); type t_write_sp_states is (E_WR_SP_IDLE, E_WR_SP_VALID_0, E_WR_SP_LAST, E_WR_SP_VALID_1, E_WR_SP_WAIT);
signal ScalpRouterResetxRNA : std_ulogic := '0'; signal ScalpRouterResetxRNA : std_ulogic := '0';
-- Scalp Packets -- Scalp Packets
...@@ -1133,7 +1133,8 @@ begin ...@@ -1133,7 +1133,8 @@ begin
end if; end if;
end process UpdateRegxP; end process UpdateRegxP;
SpValidxP : process (VioWrSpValidxS, WrSPStatexDP) is SpValidxP : process (RXAxism2sVectorxD(C_LOCAL_IF_ID).LastxS,
VioWrSpValidxS, WrSPStatexDP) is
begin -- process SpValidxP begin -- process SpValidxP
-- Default values -- Default values
WrSPStatexDN <= WrSPStatexDP; WrSPStatexDN <= WrSPStatexDP;
...@@ -1145,46 +1146,26 @@ begin ...@@ -1145,46 +1146,26 @@ begin
ScalpPacketValid12xS <= '1'; ScalpPacketValid12xS <= '1';
WrSPStatexDN <= E_WR_SP_VALID_0; WrSPStatexDN <= E_WR_SP_VALID_0;
end if; end if;
when E_WR_SP_VALID_0 => when E_WR_SP_VALID_0 =>
ScalpPacketValid12xS <= '0'; ScalpPacketValid12xS <= '0';
WrSPStatexDN <= E_WR_SP_UNVALID_0; WrSPStatexDN <= E_WR_SP_LAST;
when E_WR_SP_UNVALID_0 => when E_WR_SP_LAST =>
if RXAxism2sVectorxD(C_LOCAL_IF_ID).LastxS = '1' then
ScalpPacketValid12xS <= '1'; ScalpPacketValid12xS <= '1';
WrSPStatexDN <= E_WR_SP_VALID_1; WrSPStatexDN <= E_WR_SP_VALID_1;
end if;
when E_WR_SP_VALID_1 => when E_WR_SP_VALID_1 =>
ScalpPacketValid12xS <= '0'; ScalpPacketValid12xS <= '0';
WrSPStatexDN <= E_WR_SP_WAIT; WrSPStatexDN <= E_WR_SP_WAIT;
-- when E_WR_SP_WAIT_0 =>
-- WrSPStatexDN <= E_WR_SP_IDLE_1;
-- when E_WR_SP_IDLE_1 =>
-- if RXAxism2sVectorxD(C_LOCAL_IF_ID).LastxS = '1' then
-- WrSPStatexDN <= E_WR_LAST_1;
-- ScalpPacketValid12xS <= '1';
-- end if;
-- when E_WR_LAST_1 =>
-- if RXAxism2sVectorxD(C_LOCAL_IF_ID).LastxS = '0' then
-- -- ScalpPacketValid12xS <= '1';
-- ScalpPacketValid12xS <= '0';
-- -- WrSPStatexDN <= E_WR_SP_VALID_1;
-- WrSPStatexDN <= E_WR_SP_WAIT_1;
-- end if;
-- -- when E_WR_SP_VALID_1 =>
-- -- ScalpPacketValid12xS <= '0';
-- -- WrSPStatexDN <= E_WR_SP_WAIT_1;
when E_WR_SP_WAIT => when E_WR_SP_WAIT =>
if VioWrSpValidxS = '0' then if VioWrSpValidxS = '0' then
WrSPStatexDN <= E_WR_SP_IDLE; WrSPStatexDN <= E_WR_SP_IDLE;
end if; end if;
-- if VioWrSpValidxS = '0' then
-- WrSPStatexDN <= E_WR_SP_IDLE;
-- end if;
when others => null; when others => null;
end case; end case;
end process SpValidxP; end process SpValidxP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment