]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
correct mistake in test bench.
authorTobias Weber <toweber86@gmail.com>
Sat, 23 Jun 2018 14:11:58 +0000 (16:11 +0200)
committerTobias Weber <toweber86@gmail.com>
Sat, 23 Jun 2018 14:11:58 +0000 (16:11 +0200)
mupix/Mupix8/tb/LTC1658SPITest.vhd

index feb87036dbb7a84598c8e35aede278ce23c8ab8f..05587aa069843adc4ed1de560f3de7285d98ef07 100644 (file)
@@ -73,11 +73,11 @@ begin
        ltcshiftreg : process(spi_clk) is
        begin
                if spi_clk'event and spi_clk = '1' then
-                       spi_data_from_chip <= shiftreg(data_length - 1) after 5 ns;
                        shiftreg <= shiftreg(data_length - 2 downto 0) & spi_data_to_chip;
                end if;
        end process ltcshiftreg;
        
+       spi_data_from_chip <= shiftreg(data_length - 1) after 5 ns;
                
        stimulus : process is
        begin
@@ -86,7 +86,7 @@ begin
                start_write <= '1';
                wait for clk_period;
                start_write <= '0';
-               wait for 5 us;
+               wait for 8 us;
                spi_data_in <= x"BBBB";
                start_write <= '1';
                wait for clk_period;