added some test cases

This commit is contained in:
hneemann 2018-11-21 10:26:13 +01:00
parent 494623d005
commit 5ba0d6f84b
2 changed files with 4 additions and 2 deletions

View File

@ -560,7 +560,7 @@
<string name="elem_RegisterFile_pin_Din">The data to be stored in the register Rw.</string> <string name="elem_RegisterFile_pin_Din">The data to be stored in the register Rw.</string>
<string name="elem_Counter">Counter</string> <string name="elem_Counter">Counter</string>
<string name="elem_Counter_short">count</string> <string name="elem_Counter_short">Counter</string>
<string name="elem_Counter_tt">A simple counter component. The clock input increases the counter. <string name="elem_Counter_tt">A simple counter component. The clock input increases the counter.
Can be reset back to 0 with the clr input. Can be reset back to 0 with the clr input.
The number of bits can be set in the attribute dialog.</string> The number of bits can be set in the attribute dialog.</string>

View File

@ -141,7 +141,9 @@ end add_arch;</string>
loop(a,16) loop(a,16)
loop(b,16) loop(b,16)
(a) (b) 0 ((a+b)&gt;&gt;4) (a+b) let sum=a+b;
(a) (b) 0 (sum&gt;&gt;4) (sum)
(a) (b) 1 ((sum+1)&gt;&gt;4) (sum+1)
end loop end loop
end loop end loop
</dataString> </dataString>