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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [sys_gen/] [tst_fx2loop/] [tst_fx2loop.c] - Diff between revs 17 and 22

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 17 Rev 22
Line 1... Line 1...
/* $Id: tst_fx2loop.c 465 2012-12-27 21:29:38Z mueller $ */
/* $Id: tst_fx2loop.c 530 2013-08-09 21:25:04Z mueller $ */
/*
/*
 * Copyright 2011-2012 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
 * Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
 *
 *
 * This program is free software; you may redistribute and/or modify it under
 * This program is free software; you may redistribute and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 2, or at your option any later version.
 * Software Foundation, either version 2, or at your option any later version.
 *
 *
Line 12... Line 12...
 * for complete details.
 * for complete details.
 *
 *
 *
 *
 * Revision History:
 * Revision History:
 * Date         Rev Version  Comment
 * Date         Rev Version  Comment
 
 * 2013-08-09   530   2.1.2  -read: write up to 9 nstead of 7 words
 * 2012-04-09   461   2.1.1  fix loop back code: fix run-down, add pipe drain
 * 2012-04-09   461   2.1.1  fix loop back code: fix run-down, add pipe drain
 * 2012-03-24   460   2.1    add message loop back code (preliminary)
 * 2012-03-24   460   2.1    add message loop back code (preliminary)
 * 2012-03-10   459   2.0    re-write for asynchronous libusb interface
 * 2012-03-10   459   2.0    re-write for asynchronous libusb interface
 * 2012-02-12   457   1.1    redo argument handling; add -stat and -rndm
 * 2012-02-12   457   1.1    redo argument handling; add -stat and -rndm
 * 2012-01-15   453   1.0.1  add -tx2blast; fix bug in loop read loop
 * 2012-01-15   453   1.0.1  add -tx2blast; fix bug in loop read loop
Line 434... Line 435...
      break;
      break;
    }
    }
    prt_time();
    prt_time();
    printf("read  %4d word:", ntrans/2);
    printf("read  %4d word:", ntrans/2);
    int nprt = ntrans/2;
    int nprt = ntrans/2;
    if (nprt > 7) nprt = 7;
    if (nprt > 9) nprt = 9;
    for (i = 0; i < nprt; i++)  printf(" %4.4x", (uint16_t)buf[i]);
    for (i = 0; i < nprt; i++)  printf(" %4.4x", (uint16_t)buf[i]);
    printf("\n");
    printf("\n");
    if (nsigint>0) break;
    if (nsigint>0) break;
  }
  }
  usb_release();
  usb_release();

powered by: WebSVN 2.1.0

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