📄 spci_test.cmd
字号:
REM ===================================================================
REM spci_test.cmd
REM
REM This is a diag21k script file that can be run to test Single PCI
REM transfers on the Tiger board.
REM
REM At a DOS prompt with the executable SINGLE_PCI_ACCESS.DXE in the local
REM directory MYDIR, type:
REM
REM C:\MYDIR\>diag21k -xspci_test
REM
REM PROVIDED BY:
REM ------------
REM BittWare, Inc.
REM 33 North Main Street
REM Concord, NH 03301
REM Ph: 603-226-0404
REM Fax: 603-226-6667
REM WWW: www.bittware.com
REM E-mail: support@bittware.com
REM
REM Copyright (c) 2002
REM ===================================================================
rem -- reset board, select and configure processor, load executable
br
bs 0
pc
fl spci_test.dxe
rem -- lock down a host buffer, give the address of this to DSP --
lpm 0x10000
mw ll _pci_addr SHARED_MEM_BUF
mr lh _pci_addr
rem -- start processor --
ps
echo
echo Waiting for done ...
sw li _done 1
REM --------------- report errors ---------
echo
echo RESULTS: all errors must be 0
echo ======= --------------------
mr li _errors64
mr li _errors32
mr li _errors16
mr li _errors8
echo On to next DSP
os pause
bs 1
pc
fl spci_test.dxe
rem -- lock down a host buffer, give the address of this to DSP --
lpm 0x10000
mw ll _pci_addr SHARED_MEM_BUF
mr lh _pci_addr
rem -- start processor --
ps
echo
echo Waiting for done ...
sw li _done 1
REM --------------- report errors ---------
echo
echo RESULTS: all errors must be 0
echo ======= --------------------
mr li _errors64
mr li _errors32
mr li _errors16
mr li _errors8
echo On to next DSP
os pause
bs 2
pc
fl spci_test.dxe
rem -- lock down a host buffer, give the address of this to DSP --
lpm 0x10000
mw ll _pci_addr SHARED_MEM_BUF
mr lh _pci_addr
rem -- start processor --
ps
echo
echo Waiting for done ...
sw li _done 1
REM --------------- report errors ---------
echo
echo RESULTS: all errors must be 0
echo ======= --------------------
mr li _errors64
mr li _errors32
mr li _errors16
mr li _errors8
echo On to next DSP
os pause
bs 3
pc
fl spci_test.dxe
rem -- lock down a host buffer, give the address of this to DSP --
lpm 0x10000
mw ll _pci_addr SHARED_MEM_BUF
mr lh _pci_addr
rem -- start processor --
ps
echo
echo Waiting for done ...
sw li _done 1
REM --------------- report errors ---------
echo
echo RESULTS: all errors must be 0
echo ======= --------------------
mr li _errors64
mr li _errors32
mr li _errors16
mr li _errors8
echo Test completed ..
os pause
rem -- free host buffer --
fpm SHARED_MEM_BUF
rem -- exit diag21k without a reset --
x
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -