URL
https://opencores.org/ocsvn/uart_fpga_slow_control_migrated/uart_fpga_slow_control_migrated/trunk
Show entire file |
Details |
Blame |
View Log
Rev 29 |
Rev 30 |
Line 13... |
Line 13... |
> relative paths or paths with "" don't work
|
> relative paths or paths with "" don't work
|
|
|
++ py_serial_control.py :
|
++ py_serial_control.py :
|
\ custom very simple script to read and write the UART with Python (http://www.python.org/doc)
|
\ custom very simple script to read and write the UART with Python (http://www.python.org/doc)
|
\ uses the pySerial library (http://pyserial.sourceforge.net/)
|
\ uses the pySerial library (http://pyserial.sourceforge.net/)
|
\ parses human readable parameters and translates them into the correct hex commands
|
> parses human readable parameters and translates them into the correct hex commands
|
> e.g: >> update --> 0x8000 0x00000000
|
e.g: >> update --> 0x8000 0x00000000
|
\ include a basic 'help' menu
|
include a basic 'help' menu
|
\ define your commands
|
\ Customize your script
|
\ DEFINE the number of registers to expect back after an update
|
> define your commands
|
|
> DEFINE the number of registers to expect back after an update
|
|
\ Browse to you script folder
|
|
> from a shell type: python py_serial_control.py
|
|
> enjoy ! :)
|
\ to be implemented:
|
\ to be implemented:
|
> load parameters and commands from files
|
> load parameters and commands from files
|
> improve readback print on screen formatting
|
> improve readback print on screen formatting
|
> make a generic nregister readout
|
> make a generic nregister readout
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.