2015-02-16 17:39:12 -05:00
|
|
|
use_uart = 0
|
|
|
|
use_eth = 1
|
2015-02-05 05:02:46 -05:00
|
|
|
|
|
|
|
csr_csv_file = "./csr.csv"
|
|
|
|
busword = 32
|
|
|
|
debug_wb = False
|
|
|
|
|
2015-02-16 17:39:12 -05:00
|
|
|
if use_uart:
|
2015-02-18 10:51:35 -05:00
|
|
|
from litescope.host.driver.uart import LiteScopeUARTDriver
|
2015-02-16 17:39:12 -05:00
|
|
|
wb = LiteScopeUART2WBDriver(2, 921600, csr_csv_file, busword, debug_wb)
|
|
|
|
|
|
|
|
if use_eth:
|
2015-02-18 10:51:35 -05:00
|
|
|
from litescope.host.driver.etherbone import LiteScopeEtherboneDriver
|
2015-02-16 17:39:12 -05:00
|
|
|
wb = LiteScopeEtherboneDriver("192.168.1.40", 20000, csr_csv_file, debug_wb)
|