Fix multiple driver issue in test_loopback_util.vhd

This commit is contained in:
John Ring 2023-07-23 18:28:11 +02:00
parent 66ed1d846b
commit d3a69dbe99

View File

@ -106,17 +106,13 @@ begin
if (reset = '1') then if (reset = '1') then
input_average_latch <= (others => '0'); input_average_latch <= (others => '0');
output_average_latch <= (others => '0'); output_average_latch <= (others => '0');
input_trigger_latch <= '0';
output_trigger_latch <= '0';
input_overflow_latch <= '0'; input_overflow_latch <= '0';
output_overflow_latch <= '0'; output_overflow_latch <= '0';
else else
if (input_trigger = '1') then if (input_trigger = '1') then
input_trigger_latch <= input_trigger;
input_average_latch <= input_average; input_average_latch <= input_average;
end if; end if;
if (output_trigger = '1') then if (output_trigger = '1') then
output_trigger_latch <= output_trigger;
output_average_latch <= output_average; output_average_latch <= output_average;
end if; end if;
if (input_overflow = '1') then if (input_overflow = '1') then