[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
gpsim Stimulus Command-Line mode
From: Martin McCormick ####@####.#### Date: 28 Apr 2013 12:23:18 -0000 Message-Id: <201304281223.r3SCND41002208@x.it.okstate.edu> I can almost get a stimulus file to work, but not quite. Here it is: load s td.cod #that works. frequency 4000000 #so does that. stimulus asynchronous_stimulus initial_state 1 start_cycle 8000000 period 838 { 419, 0, 838, 1 } name tone-a end ________________________________________ gpsim takes all that file but I can't seem to attach the stimulus. Here's what happens: $ gpsim -c td.stc gpsim - the GNUPIC simulator version: Release 0.26.1 type help for help **gpsim> **gpsim> Disabling WDT **gpsim> tone-a stimulus Vth=5V Zth=1000 ohms Cth=0F nodeVoltage= 0V Driving=0 drivingState=0 drivenState=0 bitState=0 **gpsim> tone-a attached to rb0 stimulus Vth=5V Zth=1000 ohms Cth=0F nodeVoltage= 0V Driving=0 drivingState=0 drivenState=0 bitState=0 ***ERROR: syntax error, unexpected LITERAL_STRING_T, expecting EOLN_T while pars ing: 'attached' Last command: tone-a attached to rb0 **gpsim> I get the syntax error if the tone-a attached to rb0 command is after the name command in the stc file or, as I did in this example, I just typed that in at the gpsim prompt. Gpsim appears to be working normally while stepping through the PIC code. Are there any ideas as to what I am doing wrong as the stimulus files are lifted right out of some of the examples in the gpsim source. This is being run on an up-to-date Debian squeeze installation that does not run X but has many of the libraries. Many thanks. Martin McCormick | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim Stimulus Command-Line mode
From: Martin McCormick ####@####.#### Date: 28 Apr 2013 21:33:28 -0000 Message-Id: <201304282133.r3SLXOFk004869@x.it.okstate.edu> I haven't solved the problem yet, but I realized I was skipping a step and failing to define the nodes. I thought the nodes were the port connections such as RB0 or RA4 but you define a node and that node may contain one or more port connections in it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |