gnupic: gpsim Stimulus Command-Line mode


Previous by date: 28 Apr 2013 12:23:18 -0000 Re: Where is picp now?, Xiaofan Chen
Next by date: 28 Apr 2013 12:23:18 -0000 Re: gpsim Stimulus Command-Line mode, Martin McCormick
Previous in thread:
Next in thread: 28 Apr 2013 12:23:18 -0000 Re: gpsim Stimulus Command-Line mode, Martin McCormick

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

Previous by date: 28 Apr 2013 12:23:18 -0000 Re: Where is picp now?, Xiaofan Chen
Next by date: 28 Apr 2013 12:23:18 -0000 Re: gpsim Stimulus Command-Line mode, Martin McCormick
Previous in thread:
Next in thread: 28 Apr 2013 12:23:18 -0000 Re: gpsim Stimulus Command-Line mode, Martin McCormick


Powered by ezmlm-browse 0.20.