alu: postsim geht jetzt zwar, trotzdem haufweise warnings...
[hwmod.git] / src / beh_alu_tb.vhd
index 0efdcc37ab719fa96c9b7bcc76dd233c22677c80..fb9382cbbc09667de2dcad15298c35e109c4989c 100644 (file)
@@ -91,11 +91,11 @@ begin
                op1 <= (others => '0');
                op2 <= (others => '0');
 
-               wait for 300 ns;
+               icwait(sys_clk, 30);
                sys_res_n <= '1';
 
                for i in testmatrix'range loop
-                       wait for 100 ns;
+                       icwait(sys_clk, 10);
                        op1 <= to_signed(testmatrix(i).o1,CBITS);
                        opcode <= testmatrix(i).o;
                        op2 <= to_signed(testmatrix(i).o2,CBITS);
@@ -105,6 +105,7 @@ begin
 
                        -- warten auf die alu einheit
                        wait on calc_done;
+                       icwait(sys_clk, 1);
 
                        assert op3 = to_signed(testmatrix(i).expected,CBITS)
                                report "" & cinteger'image(testmatrix(i).o1) & 
@@ -113,7 +114,7 @@ begin
                                "/= " & integer'image(to_integer(op3)) &
                                " -- erwartet: " & cinteger'image(testmatrix(i).expected);
 
-                       wait for 5 ns;
+                       icwait(sys_clk, 2);
                        -- ack it!
                        do_calc <= '0';
                end loop;