From d2acb459a9aff4cf7490f6afa4e4197c1febaac1 Mon Sep 17 00:00:00 2001 From: hneemann Date: Fri, 1 Sep 2017 20:33:57 +0200 Subject: [PATCH] fixed test case in 74163 --- src/main/dig/lib/74xx/counter/74163.dig | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/dig/lib/74xx/counter/74163.dig b/src/main/dig/lib/74xx/counter/74163.dig index ac3486939..4ff980d93 100644 --- a/src/main/dig/lib/74xx/counter/74163.dig +++ b/src/main/dig/lib/74xx/counter/74163.dig @@ -355,14 +355,35 @@ Testdata - ~SR ~PE CP CET CEP P0 P1 P2 P3 Q0 Q1 Q2 Q3 + CP ~SR ~PE CET CEP P3 P2 P1 P0 Q3 Q2 Q1 Q0 # load loop(i,4) loop(n,16) -1 0 C bits(2,i) bits(4,n) bits(4,n) +C 1 0 bits(2,i) bits(4,n) bits(4,n) end loop end loop + +# reset +loop(i,8) +loop(n,16) +C 1 0 0 0 bits(4,n) bits(4,n) +C 0 bits(3,i) bits(4,n) bits(4,0) +end loop +end loop + +# count +loop(n,16) +C 1 1 1 1 bits(4,0) bits(4,n+1) +end loop + +# hold +loop(n,16) +C 1 0 0 0 bits(4,n) bits(4,n) +C 1 1 0 0 bits(4,n) bits(4,n) +C 1 1 1 0 bits(4,n) bits(4,n) +C 1 1 0 1 bits(4,n) bits(4,n) +end loop