Version 1/2
-
Next » -
Current version
Dmitry Smekhov, 05/14/2013 12:03 am
WB TEST¶
The program is designed to test the operation of the module with the FPGA project WISHBONE.
Features¶
- Display information BAR0 - list of control units
- Display information BAR1 - list of control units TEST_CHECK, TEST_GENERATE
- Checking of the data input from the TEST_GENERATE
- Checking of the data output to the TEST_CHECK
- Synchronous data input from the TEST_GENERATE and data output to the TEST_CHECK
- The calculation of the current exchange rate - in the interval 4 seconds
- Calculating the average exchange rate - with the launch of
- Error logging
Source code¶
The source code of the program is in the repository: trunk/soft/linux/application/wb_test
Catalogs:- bin - executable and configuration files
- src - source code
- Makefile - for build
- work - source code
- pex - contains class files: pex_board
- utils - contains useful files
Starting the program¶
Before starting the program you want to load driver pexdrv.
To load the driver script is used insert from the directory soft/linux/driver
Loading the driver: sudo ./Insert.
Unloading Driver: sudo rmmod pexdrv
To view a list of available devices can run the command ls /dev/AMB *
The device name is formed as follows: /dev/<device name> <sequencenumber of the device>
For example: /dev/AMBPEX50
Launch:
./wb_test <device name> <configuration file> [<configuration file>]
- <device name> - logical device name, for example /dev/pexdrv0 (not currently implemented, is always used pexdrv0)
- <configuration file> - cfg file with parameters
- test_gen.cfg - inputs from the TEST_GENERATE
- out_check.cfg - output to the TEST_CHECK
If given two file that runs two of the testing process, if only one file is only one testing process.