WB TEST en
Version 1 (Dmitry Smekhov, 05/14/2013 12:03 am)
| 1 | 1 | h1. WB TEST |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | The program is designed to test the operation of the module with the FPGA project WISHBONE. |
|
| 4 | 1 | ||
| 5 | 1 | h2. Features |
|
| 6 | 1 | ||
| 7 | 1 | * Display information BAR0 - list of control units |
|
| 8 | 1 | * Display information BAR1 - list of control units TEST_CHECK, TEST_GENERATE |
|
| 9 | 1 | * Checking of the data input from the TEST_GENERATE |
|
| 10 | 1 | * Checking of the data output to the TEST_CHECK |
|
| 11 | 1 | * Synchronous data input from the TEST_GENERATE and data output to the TEST_CHECK |
|
| 12 | 1 | * The calculation of the current exchange rate - in the interval 4 seconds |
|
| 13 | 1 | * Calculating the average exchange rate - with the launch of |
|
| 14 | 1 | * Error logging |
|
| 15 | 1 | ||
| 16 | 1 | h2. Source code |
|
| 17 | 1 | ||
| 18 | 1 | The source code of the program is in the repository: *trunk/soft/linux/application/wb_test* |
|
| 19 | 1 | ||
| 20 | 1 | Catalogs: |
|
| 21 | 1 | * *bin* - executable and configuration files |
|
| 22 | 1 | * *src* - source code |
|
| 23 | 1 | ||
| 24 | 1 | Catalog *src* |
|
| 25 | 1 | * *Makefile* - for build |
|
| 26 | 1 | * *work* - source code |
|
| 27 | 1 | ||
| 28 | 1 | The program uses the files in the directory *trunk/soft/linux/common/* |
|
| 29 | 1 | * *pex* - contains class files: *pex_board* |
|
| 30 | 1 | * *utils* - contains useful files |
|
| 31 | 1 | ||
| 32 | 1 | ||
| 33 | 1 | h2. Starting the program |
|
| 34 | 1 | ||
| 35 | 1 | Before starting the program you want to load driver *pexdrv*. |
|
| 36 | 1 | To load the driver script is used *insert* from the directory *soft/linux/driver* |
|
| 37 | 1 | Loading the driver: *sudo ./Insert*. |
|
| 38 | 1 | Unloading Driver: *sudo rmmod pexdrv* |
|
| 39 | 1 | ||
| 40 | 1 | ||
| 41 | 1 | To view a list of available devices can run the command *ls /dev/AMB* * |
|
| 42 | 1 | The device name is formed as follows: /dev/<device name> <sequencenumber of the device> |
|
| 43 | 1 | For example: /dev/AMBPEX50 |
|
| 44 | 1 | ||
| 45 | 1 | Launch: |
|
| 46 | 1 | *./wb_test <device name> <configuration file> [<configuration file>]* |
|
| 47 | 1 | ||
| 48 | 1 | * <device name> - logical device name, for example */dev/pexdrv0* (not currently implemented, is always used *pexdrv0*) |
|
| 49 | 1 | * <configuration file> - cfg file with parameters |
|
| 50 | 1 | ||
| 51 | 1 | List of configuration files: |
|
| 52 | 1 | * *test_gen.cfg* - inputs from the TEST_GENERATE |
|
| 53 | 1 | * *out_check.cfg* - output to the TEST_CHECK |
|
| 54 | 1 | ||
| 55 | 1 | If given two file that runs two of the testing process, if only one file is only one testing process. |