mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 23:36:27 -04:00
added some test cases
This commit is contained in:
parent
494623d005
commit
5ba0d6f84b
@ -560,7 +560,7 @@
|
||||
<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_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.
|
||||
Can be reset back to 0 with the clr input.
|
||||
The number of bits can be set in the attribute dialog.</string>
|
||||
|
@ -141,7 +141,9 @@ end add_arch;</string>
|
||||
|
||||
loop(a,16)
|
||||
loop(b,16)
|
||||
(a) (b) 0 ((a+b)>>4) (a+b)
|
||||
let sum=a+b;
|
||||
(a) (b) 0 (sum>>4) (sum)
|
||||
(a) (b) 1 ((sum+1)>>4) (sum+1)
|
||||
end loop
|
||||
end loop
|
||||
</dataString>
|
||||
|
Loading…
x
Reference in New Issue
Block a user