URL
https://opencores.org/ocsvn/p9813_rgb_led_string_driver/p9813_rgb_led_string_driver/trunk
Subversion Repositories p9813_rgb_led_string_driver
[/] [p9813_rgb_led_string_driver/] [trunk/] [rtl/] [VHDL/] [testbench/] [rs232_test_in.txt] - Rev 2
Compare with Previous | Blame | View Log
-- Simulation Input File
-- For "sim_uart_control_port"
--
-- u = UART transmit data
-- <time delay> is relative time which elapses before next line is processed.
--
-- Format:
--
-- u <time delay> xyz ... Where wwwwwwww = relative time and (x, y, z...) = ASCII characters
-- A single Carriage Return is sent at the end of each line (at the ';' character)
-- Currently, Backspace and other "special characters" are not supported,
-- although "uart_control_port" can certainly be used to send those.
-- This set of commands is useful to verify operation of the system controller module.
--d 10 us; -- Delay
--u 300 us ; -- <CR> (Allows autobaud to obtain lock on baud rate.)
--u 300 us i; -- i<CR>
--u 600 us r 00; -- read in src region, qty unspecified. (POR default is used.)
--u 600 us r 00 2; -- read in src region
--u 600 us r 10 2; -- read in dst region
--u 600 us r; -- read in dst region, use same qty as previous command, with sequential address.
--u 2.1 ms r 00 31; -- read across src, dst, misc and beyond, resulting in bus error message
--u 300 us f 14 55 4; -- fill in dst region
--u 300 us f 18 AA 4; -- fill
--u 300 us w 1c 01 23; -- write
--u 300 us w 00 45 67; -- write
--u 300 us y 0r 45 67; -- write, should cause "c?" message
--u 300 us w 0r 45 67; -- write, should cause "a?" message
--u 300 us w 00 t5 67; -- write, should cause "d?" message
--u 300 us f 00 45 67; -- fill, should cause "q?" message
-- This set of commands is useful to exercise the module under test
--d 2.0 ms ; -- Delay to allow for incoming initialization strings
d 10 us; -- Delay
u 0.3 ms ; -- <CR> (Allows autobaud to obtain lock on baud rate.)
--u 4.5 ms r 5000001 8; -- Read from SPI Flash in memory mapped fashion
--u 4.5 ms w 5000002 0 1 2 3; -- Write to SPI Flash in memory mapped fashion
--u 0.5 ms w 300fff7 a; -- Select SPI Flash Interface function
--u 0.5 ms w 300ffc3 7f0000; -- Set ram mapping address register
--u 1.5 ms w 300ffc5 5; -- Erase a sector
--u 4.5 ms r 5000001 8; -- Read from SPI Flash in memory mapped fashion
--u 0.5 ms w 300ffc0 0 3 7f0000;
--u 1.4 ms r 300ffc0 7; -- Read SPI bytes
--u 0.6 ms w 300ffc0 1; -- Finish SPI command
--u 0.3 ms w 10100 100; -- Send ARP request (test)
--u 0.3 ms w 10100 100; -- Send ARP request (test)
--