microtca_development
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
microtca_development [2014/01/16 14:08] – abunimeh | microtca_development [2014/01/16 14:17] (current) – abunimeh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === VadaTech UTC002 10 GbE to 1 GbE mode === | + | ==== VadaTech UTC002 10 GbE to 1 GbE mode ==== |
{{ : | {{ : | ||
CoBo (and its FRU) is designed to have two physically independent 1GbE connections to AMC PORT0 and PORT4. VadaTech 10GbE switch (connected to AMCs PORT 4) inside UTC002 has to be configured to allow its 10GbE ports to accept 1GbE (only) connections. Therefore, in order for CoBo 1GbE connection (on PORT4) to work on VadaTech' | CoBo (and its FRU) is designed to have two physically independent 1GbE connections to AMC PORT0 and PORT4. VadaTech 10GbE switch (connected to AMCs PORT 4) inside UTC002 has to be configured to allow its 10GbE ports to accept 1GbE (only) connections. Therefore, in order for CoBo 1GbE connection (on PORT4) to work on VadaTech' | ||
Line 59: | Line 59: | ||
D- then type save-config | D- then type save-config | ||
</ | </ | ||
+ | |||
+ | ==== VadaTech UTC008 JSM (JTAG) ==== | ||
+ | For debugging purposes it is useful to connect the JTAG port on a CoBo installed in a chassis to your workstation. VadaTech' | ||
+ | |||
+ | 1- Connect your JTAG Xilinx platform cable USB to the JSM module | ||
+ | |||
+ | 2- Copy the script below to a local file | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | # Author: Faisal Abu-Nimeh | ||
+ | # Data: 20140115 | ||
+ | |||
+ | # functions | ||
+ | |||
+ | function createBsd(){ | ||
+ | cat <<- _EOF_ > / | ||
+ | entity generated_ds26900cfg is | ||
+ | generic (PHYSICAL_PIN_MAP : string := " | ||
+ | port (TCK: in bit; TDI: in bit; TDO: out bit; TMS: in bit); | ||
+ | use STD_1149_1_2001.all; | ||
+ | attribute Component_Conformance of ds26900cfg : entity is " | ||
+ | attribute PIN_MAP of ds26900cfg : entity is PHYSICAL_PIN_MAP; | ||
+ | constant X_PACKAGE: | ||
+ | attribute Tap_Scan_In of TDI: signal is true; | ||
+ | attribute Tap_Scan_Mode of TMS: signal is true; | ||
+ | attribute Tap_Scan_Out of TDO: signal is true; | ||
+ | attribute Tap_Scan_Clock of TCK: signal is (1.0e06, BOTH); | ||
+ | attribute Instruction_Length of ds26900cfg: entity is 5; | ||
+ | attribute Instruction_Opcode of ds26900cfg: entity is " | ||
+ | attribute Instruction_Capture of ds26900cfg: entity is " | ||
+ | attribute Boundary_Length of ds26900cfg: entity is 1; | ||
+ | attribute Boundary_Register of ds26900cfg: entity is "0 (BC_1, *, control, 0)"; | ||
+ | end ds26900cfg; | ||
+ | _EOF_ | ||
+ | |||
+ | echo 'Done writing bsd file' | ||
+ | } | ||
+ | |||
+ | function createSVF() { | ||
+ | echo "SVF to $1" | ||
+ | cat <<- _EOF_ > / | ||
+ | TRST OFF; | ||
+ | ENDIR IDLE; | ||
+ | ENDDR IDLE; | ||
+ | STATE RESET; | ||
+ | STATE IDLE; | ||
+ | SIR 5 TDI (00) SMASK (1f) ; | ||
+ | SDR 8 TDI (00) SMASK (ff) TDO (C0) MASK (ff) ; | ||
+ | SIR 5 TDI (03) SMASK (1f) ; | ||
+ | SDR 8 TDI (0A) SMASK (ff) TDO (00) MASK (00) ; | ||
+ | SIR 5 TDI (01) SMASK (1f); | ||
+ | SDR 5 TDI (01) SMASK (1f) TDO (00) MASK (00); | ||
+ | SIR 5 TDI (02) SMASK (1f); | ||
+ | SDR 5 TDI (0$1) SMASK (1f) TDO (00) MASK (00); | ||
+ | _EOF_ | ||
+ | |||
+ | echo 'Done writing svf file' | ||
+ | } | ||
+ | |||
+ | function createStep1() { | ||
+ | cat <<- _EOF_ > /tmp/step1 | ||
+ | setMode -bs | ||
+ | addDevice -p 1 -file "/ | ||
+ | assignFile -p 1 -file "/ | ||
+ | setCable -port auto | ||
+ | Play | ||
+ | quit | ||
+ | _EOF_ | ||
+ | |||
+ | echo 'Done writing step1 file' | ||
+ | } | ||
+ | |||
+ | function createStep2() { | ||
+ | echo "Step2 to $1" | ||
+ | cat <<- _EOF_ > /tmp/step2 | ||
+ | setMode -bs | ||
+ | setCable -port auto | ||
+ | addDevice -p 1 -file " | ||
+ | program -p 1 | ||
+ | quit | ||
+ | _EOF_ | ||
+ | |||
+ | echo 'Done writing step2 file' | ||
+ | } | ||
+ | |||
+ | function pause(){ | ||
+ | read -p " | ||
+ | } | ||
+ | |||
+ | if [ " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo "e.g. $0 3 uCoBo-131217.bit" | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | SLOTNUM=`printf " | ||
+ | BITPATH=`readlink -f " | ||
+ | |||
+ | echo ' | ||
+ | createBsd | ||
+ | |||
+ | echo " | ||
+ | createSVF $SLOTNUM | ||
+ | |||
+ | pause 'Turn CFG and FTM_REQ on (up), then press [ENTER]' | ||
+ | echo ' | ||
+ | |||
+ | createStep1 | ||
+ | |||
+ | impact -batch < /tmp/step1 | ||
+ | |||
+ | pause 'Turn CFG off (down), then press [ENTER]' | ||
+ | |||
+ | if [ " | ||
+ | echo " | ||
+ | createStep2 $BITPATH | ||
+ | impact -batch < /tmp/step2 | ||
+ | fi | ||
+ | echo " | ||
+ | </ | ||
+ | 3- chmod +x connectCoBo.sh | ||
+ | |||
+ | 4- ./ | ||
+ | |||
+ | 5- or to download an fpga bit file ./ | ||
+ | |||
+ | 6- follow the prompt when asked to set the CFG and FTM_REQ switches | ||
+ | |||
+ |
microtca_development.1389899295.txt.gz · Last modified: 2014/01/16 14:08 by abunimeh