3 Commits

Author SHA1 Message Date
3957ce32b5 Adapt interrupt generation logic to solve problem with missing interrupts. 2024-07-25 15:39:24 +02:00
a0f4eddf91 Updated instantiation of psi_common_async_fifo due to change of the port name 2024-01-26 10:48:07 +01:00
Waldemar Koprek
69a9c03486 Merge pull request #5 from paulscherrerinstitute/feature/timeout_ctrl
Adaptions in timeout handling at the stream input stage
2023-09-21 12:47:32 +02:00
2 changed files with 8 additions and 7 deletions

View File

@@ -576,11 +576,12 @@ begin
if (unsigned(r.TfDoneCnt) /= 0) and (IrqFifoEmpty = '0') then
v.IrqFifoRead := '1';
v.TfDoneCnt := std_logic_vector(unsigned(v.TfDoneCnt) - 1);
-- Generate IRQ if required
if IrqFifoGenIrq = '1' then
v.StrIrq(to_integer(unsigned(IrqFifoStream))) := '1';
v.StrLastWin(to_integer(unsigned(IrqFifoStream))) := std_logic_vector(resize(unsigned(IrqLastWinNr), 5));
end if;
end if;
-- Generate IRQ if required
if IrqFifoGenIrq = '1' and r.IrqFifoRead = '1' then
v.StrIrq(to_integer(unsigned(IrqFifoStream))) := '1';
v.StrLastWin(to_integer(unsigned(IrqFifoStream))) := std_logic_vector(resize(unsigned(IrqLastWinNr), 5));
end if;
-- *** Assign to signal ***

View File

@@ -508,7 +508,7 @@ begin
in_rdy_o => DataFifo_InRdy,
out_dat_o => DataFifo_PlData,
out_vld_o => DataFifo_PlVld,
out_rdy_o => DataFifo_PlRdy,
out_rdy_i => DataFifo_PlRdy,
out_lvl_o => DataFifo_Level
);
@@ -563,7 +563,7 @@ begin
in_empty_o => TsFifo_Empty,
out_dat_o => TsFifo_RdData,
out_vld_o => Ts_Vld_I,
out_rdy_o => Ts_Rdy
out_rdy_i => Ts_Rdy
);
Ts_Vld <= Ts_Vld_I;
-- Replace data by 0xFF... if no valid timestamp is available