16-08-07

CoreABC - Binary Counter

Another example of the binary counter implemented as a SoC on an ACTEL ProASIC3 FPGA by use of the CoreABC and CoreGPIO softcore microprocessor.

 Enjoy this educational example.

// http://mobile.skynetblogs.be

// Vincent Claes 

LOAD 1
$Main
APBWRT ACC 0 0
CALL $Wait500ms
ADD 1
APBWRT ACC 0 0
CALL $Wait500ms
JUMP $Main

$Wait500ms
    CALL $Wait100ms
$Wait400ms
    CALL $Wait100ms
$Wait300ms
    CALL $Wait100ms
$Wait200ms
    CALL $Wait100ms
$Wait100ms
    CALL $Wait20ms
$Wait80ms
    CALL $Wait40ms
$Wait40ms
    CALL $Wait20ms
$Wait20ms
    CALL $Wait10ms
$Wait10ms
    NOP
    LOADLOOP 34998
$Wait10msInner
    DECLOOP
    JUMP IFNOT LOOPZ $Wait10msInner
    RETURN

 

12:14 Gepost door Mobile blogger in Algemeen | Permalink | Commentaren (0) | Tags: actel, fpga, coreabc, coregpio, soc |  Facebook |

De commentaren zijn gesloten.