OpenCores
URL https://opencores.org/ocsvn/versatile_library/versatile_library/trunk

Subversion Repositories versatile_library

[/] [versatile_library/] [trunk/] [misc/] [VersatileCounter.php] - Blame information for rev 86

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 47 unneback
#!/usr/bin/php
2
<?php
3
 
4
include (dirname(__FILE__) . '/VersatileCounter.class.php');
5
 
6
if(isset($argv[1]) and !isset(VersatileCounter::$masks[$argv[1]])) {
7
    echo "Error: Bitmask not found" PHP_EOL;
8
    die(1);
9
}
10
 
11
$c = new VersatileCounter(isset($argv[1])?$argv[1]:8);
12
$c->run(isset($argv[2])?$argv[2]:2,isset($argv[3]));
13
 
14
if(!isset($argv[3])) {
15
    echo $c->state() . PHP_EOL;
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.