Gast
#1876384
in Anlehnung an Herrn Millers FIFO ist folgender VHDL-Code entstanden: adc_input : in std_logic_vector(0 to act_adc_dwidth-1):=(0 =>'1',others =>'0'); type speicher is array(0 to fifo_depth -1) of std_logic_vector(0 to act_adc_dwidth-1); signal in_memory : speicher; signal out_memory : speicher; FILL_FIFO_Proc : process( Bus2IP_Clk ) is begin if Bus2IP_Clk'event and Bus2IP_Clk = '1' then if Bus2IP_Reset = '1' then in_count <= 0; fifo_overrun <='0'; elsif in_count<fifo_depth+1 then in_memory(in_count) <= adc_input; in_count<=in_count+1; end if; if fifo_depth = in_count then if 0 = out_count then out_memory<=in_memory; in_count<=0; else fifo_overrun <='1'; end if; end if; in_test_port<=in_memory(0); out_test_port<=out_memory(0); end if; end process FILL_FIFO_Proc; wenn ich das ganze simuliere steht im in_memory das richtige drin im out_memory aber nur einsen wo kommen die her, was mach ich falsch? Besten Dank für eure Ideen. Hannes