X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=blobdiff_plain;f=src%2Fbeh_alu_tb.vhd;h=15bb002cb2cb36f210366ad0db98dc6d6eea9143;hp=de347a1917dbe05521dedb8862b4905a621e6a46;hb=add09426c37207967bc917a7ada78a05f7c47eb2;hpb=7a5b74318bcc702f114c99b53135dec67022c9bb diff --git a/src/beh_alu_tb.vhd b/src/beh_alu_tb.vhd index de347a1..15bb002 100644 --- a/src/beh_alu_tb.vhd +++ b/src/beh_alu_tb.vhd @@ -162,8 +162,8 @@ begin assert(false) report "testfall war ein error (passt)"; end if; else - assert ((op3 = to_signed(testmatrix(i).expected,CBITS)) and (opM = to_signed(testmatrix(i).om,CBITS))) - report "" & cinteger'image(testmatrix(i).o1) & + if not((op3 = to_signed(testmatrix(i).expected,CBITS)) and (opcode /= ALU_DIV or opM = to_signed(testmatrix(i).om,CBITS))) then + assert(false) report "" & cinteger'image(testmatrix(i).o1) & " " & integer'image(to_integer(signed(opcode))) & " " & cinteger'image(testmatrix(i).o2) & " /= " & integer'image(to_integer(op3)) & @@ -171,7 +171,6 @@ begin " -- erwartet: " & cinteger'image(testmatrix(i).expected) & " ( " & cinteger'image(testmatrix(i).om) & " ) "; - if not((op3 = to_signed(testmatrix(i).expected,CBITS)) and (opM = to_signed(testmatrix(i).om,CBITS))) then checkall := false; end if; end if;