PWB: Difference between revisions
Jump to navigation
Jump to search
Line 91: | Line 91: | ||
== ESPER Variables == | == ESPER Variables == | ||
* Board | |||
** invert external trigger - invert trigger signal from CDM before it drives any logic (to undo incorrect signal polarity) | |||
* Link | |||
** link_ctrl bits: | |||
<pre> | |||
0 - sata_link_udp_stream_in_enable - permit data flow from sata link to OFFLOAD_SATA | |||
1 - udp_stream_out_enable - permit sca data flow to sata link | |||
2 - sata_to_eth_enable - permit ethernet data flow from sata link to TSE_MAC | |||
3 - eth_to_sata_enable - permit ethernet data flow from TSE MAC to sata link | |||
4 - sink8_delay - (temporary) change sink8 ready latency in link_tx | |||
5 - stop_our_tx - (temporary) manually activate the flow control signal into link_tx | |||
6 - stop_remote_tx - (temporary) manually activate the flow control signal into link_tx | |||
</pre> | |||
= ZZZ = | = ZZZ = | ||
ZZZ | ZZZ |
Revision as of 21:05, 19 November 2019
Links
- https://bitbucket.org/teamalphag/pwb_rev1_firmware
- https://edev-group.triumf.ca/fw/exp/alphag/feam/rev1
- https://edev-group.triumf.ca/hw/alphag/feam/rev1
- https://ladd00.triumf.ca/daqinv/frontend/list/170 - PWB inventory database
Schematics
Manuals
- File:AFTER MANUAL V1.pdf AFTER SCA manual v1
- File:AFTER DataSheet1 1.pdf AFTER SCA manual v1.1
- File:AFTER SCA table2.pdf AFTER SCA channel map
Firmware
NIOS terminal
$ ssh agmini@daq16 $ /opt/intelFPGA/16.1/quartus/bin/jtagconfig 1) USB-Blaster [2-1.2] 02B030DD 5CGTFD7(B5|C5|D5)/5CGXBC7B6/.. $ /opt/intelFPGA/17.0/quartus/bin/nios2-terminal nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [2-1.2]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) PWB Revision 1 Boot Loader Ver 2.0 Build 357 - Wed Jun 6 15:05:35 PDT 2018 ...
Flash boot loader firmware via jtag
$ ssh agmini@daq16 $ /opt/intelFPGA/16.1/quartus/bin/jtagconfig 1) USB-Blaster [2-1.2] 02B030DD 5CGTFD7(B5|C5|D5)/5CGXBC7B6/.. $ cd ~/online/firmware/pwb_rev1 $ ls -l $ /opt/intelFPGA/17.1/quartus/bin/quartus_pgmw ... auto detect ... load the jic file ... in menu tools->programmer, enable "unprotect device" ... start program/configure operation
Flash user page firmware via esper-tool
$ ssh agmini@daq16 $ cd online/src $ more update_pwb.perl ### check that $fw is set to the desired firmware file $ ./update_pwb.perl pwb06 ### or give more PWB names or give "all"
Build firmware
NOTE: quartus 16.1 should be used for jtag (jtagconfig and jtagd)
NOTE: quartus 17.0 should be used to build the PWB firmware (17.1 is not compatible)
$ ssh agmini@daq16 $ /opt/intelFPGA/17.0/nios2eds/nios2_command_shell.sh ------------------------------------------------ Altera Nios2 Command Shell [GCC 4] Version 17.0, Build 602 ------------------------------------------------ $ cd online/firmware/git/pwb_rev1_firmware $ git pull $ git checkout alphag $ git pull $ ./scripts/compile_project.sh $ ls -l bin/*.sof bin/*.jic bin/*.rpd -rw-r--r-- 1 agmini alpha 12727389 Jan 24 2018 bin/feam_auto.rpd -rw-r--r-- 1 agmini alpha 33554661 Jan 24 2018 bin/feam.jic -rw-r--r-- 1 agmini alpha 6974754 Jan 24 2018 bin/feam.sof $ ### feam.jic is loaded via jtag $ ### feam_auto.rpd is loaded via esper $ ### feam.sof is used to attach the signal tap
ESPER Variables
- Board
- invert external trigger - invert trigger signal from CDM before it drives any logic (to undo incorrect signal polarity)
- Link
- link_ctrl bits:
0 - sata_link_udp_stream_in_enable - permit data flow from sata link to OFFLOAD_SATA 1 - udp_stream_out_enable - permit sca data flow to sata link 2 - sata_to_eth_enable - permit ethernet data flow from sata link to TSE_MAC 3 - eth_to_sata_enable - permit ethernet data flow from TSE MAC to sata link 4 - sink8_delay - (temporary) change sink8 ready latency in link_tx 5 - stop_our_tx - (temporary) manually activate the flow control signal into link_tx 6 - stop_remote_tx - (temporary) manually activate the flow control signal into link_tx
ZZZ
ZZZ