The file ticks.exe is a self-extracting archive file. It contains source and executable for the TI Check (tick) program. ******************************************************************************~ ******************************************************************************~ ******************************************************************************~ ******************************************************************************~ ******************************************************************************~ *** **~ *** **~ *** TMS320C40 parallel network detection utility v1.2 **~ *** **~ *** Now Supports: **~ *** Transtech, Hunt, and Traquair boards **~ *** hosted by DOS, SunOS, Linux (a PC unix) **~ *** **~ *** by Ben Abbott and Akos Ledeczi **~ *** **~ *** EMAIL: abbott@vuse.vanderbilt.edu, akos@vuse.vanderbilt.edu **~ *** **~ *** Modifications for UNIX by **~ *** **~ *** Mark Milligan **~ *** University of British Columbia **~ *** **~ *** Copyright (C) 1993, Vanderbilt University. All rights **~ *** reserved. **~ *** **~ *** Free use of this program is granted as long as it is not **~ *** redistributed for profit. It may NOT be distributed in any **~ *** form as part of a commercial product without the written **~ *** permission of the authors. **~ *** **~ *** This program is distributed in the hope that it will be **~ *** useful, but WITHOUT ANY WARRANTY; without even the implied **~ *** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR **~ *** PURPOSE. **~ *** **~ ******************************************************************************~ ******************************************************************************~ ******************************************************************************~ *** *** *** Considering the interest for a network check program for C40's, *** *** we have decided to release our code. *** *** *** *** To compile this code you will need TI C and Turbo C. It might *** *** work with MicroSoft, but we don't use it. If you use GCC on *** *** PC's, look at the Makefile to see how to compile. *** *** Linux users can compile this code with their GCC compiler. *** *** The Sun version of the code was compiled with GCC. *** *** *** *** Makefiles have been included to help you build the code. *** *** If you don't like make, we have provided a file "compile.bat" *** *** that will also work on DOS machines. *** *** *** *** We have included an executable (tick.exe) so that you don't have *** *** to compile at all. *** *** *** *** The following output illustrates how to run the program: *** *** *** c:> tick TICK v1.2 TMS320C40 parallel network detection utility Copyright (c) 1993 Vanderbilt University Please Wait... # TYPE MHz LINK0 LINK1 LINK2 LINK3 LINK4 LINK5 GMEM LMEM FMEM 1 00120001-000C 40 2:3 ... ... HOST ... 2:2 4096Kb 4096Kb 8Kb 2 00120002-000A 40 3:3 ... 1:5 1:0 ... 3:2 4096Kb 4096Kb 8Kb 3 00120002-000A 40 ... ... 2:5 2:0 ... ... 4096Kb 4096Kb 8Kb *** *** *** This output indicates that the network connected to this PC has *** *** 3 C40's in it. They have been numbered 1 to 3. C40 #1 is *** *** connected to the PC host through its link 3. Link 0 of C40 #1 *** *** is hooked to Link 3 of C40 #2, etc. *** *** *** *** Several items read from the ID Rom are displayed: *** *** *** *** 1) The type identifier says that Processor #1 has a manufacturer id of *** *** 0012 (Hex), model id is 0001 (Hex), Revision level is 000C (Hex). *** *** *** *** 2) The speed is indicated under the MHz label. *** *** *** *** 3) The Memory size values for Global, Local, and on chip are also *** *** provided *** *** *** *** Using the "-i" switch provides a full ID ROM print out of each module. *** *** *** *** We have patterned this interface after the INMOS "check" *** *** program. All code here is new and is not based on the INMOS code. *** *** *** *** Manifest tick V1.2: *** *** *** *** README - this file *** *** makefile.dos - make file for msdos *** *** makefile.sun - make file for sun/unix *** *** makefile.lnx - make file for linux 386+ PD PC unix *** *** dos.cmd - c40 link file for msdos and linux *** *** sun.cmd - C40 link file for sun/unix *** *** compile.bat - DOS batch file to build system *** *** defaults.h - header file with various defaults *** *** hevlink.c - INMOS link style driver for Traquair/Hunt HEV40 *** *** t408link.c - INMOS link style driver for Transtech TDMB408 *** *** and Traquair/Hunt *** *** boot.asm - startup file for C40 *** *** checkti.c - C40 side of check program *** *** tick.c - Main program *** *** check.c - Support routines to manage the search *** *** swap4.c - utility to reverse byte order in download file. *** *** tick.dwn - pre-built download file for C40 *** *** tick.exe - pre-built DOS executable *** *** tick_0.dwn - reverse byte order, output from swap4 *** *** makeload.exe - DOS utility to convert TI C40 COFF output *** *** to a series of bytes acceptable for booting a C40 *** *** *** *** *** *** *** *** NOTES v1.2: *** *** *** *** - This version now reads the ID ROM values and prints them out. *** *** (Use the -i switch for the long output format) *** *** *** *** - The rest of the changes for this version (v1.2) were completed by *** *** Mark Milligan of UBC. Thanks Mark! *** *** *** *** - This version has been tested with a Traquair/Hunt HEV40 board *** *** hosted by a SunOS/Unix machine. Also tested was a Transtech *** *** TDMB408 board under MSDOS v5.0 and the public domain PC unix *** *** Linux. The Traquair/Hunt HEPC-2 board was tested with an early *** *** version of this code and appears to be compatible with the *** *** Transtech board. It is believed that the HESB-40 Sbus card is *** *** compatible with the HEV40 code due to the unix device driver *** *** interface similarities. *** *** *** *** - Tick now uses INMOS style link drivers. This should help *** *** make it more easily portable to other hardware in the *** *** future. If you make a port, please let us have your driver *** *** code, and other changes. *** *** *** *** *** *** - Other features added: *** *** *** *** 1) command line parsing *** *** *** *** 2) verbose mode. *** *** *** *** 3) debug mode. *** *** *** *** 4) command line device selection. /* UNIX ONLY */ *** *** *** *** 5) enviromnment variables for: *** *** *** *** a) Device Driver = TICK_DEV /* unix only */ *** *** *** *** set this to point at your device driver file *** *** *** *** b) Path to tick.dwn = TICK_PATH *** *** *** *** set this to point at the location of the file: *** *** "tick.dwn" *** *** (if you are a DOS user, you don't have to use *** *** this environment variable as long as the tick.dwn *** *** file remains in the same directory as tick.exe) *** *** *** *** *** *** *** *** Please let us know if you find this code useful, have comments, *** *** suggestions, bugs, etc. *** *** *** *** Ben Abbott or Akos Ledeczi *** *** Vanderbilt University *** *** Department of Electrical Engineering *** *** 400 24th Ave S. *** *** Nashville, TN 37235 *** *** *** *** abbott@vuse.vanderbilt.edu *** *** akos@vuse.vanderbilt.edu *** *** *** *** *** ******************************************************************************* ******************************************************************************* ******************************************************************************* ******************************************************************************* *******************************************************************************