gnupic: watch window for gpsim gui


Previous by date: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Sam Colwell
Next by date: 9 Jan 2000 18:49:19 -0000 Re: gpasm, Scott Dattalo
Previous in thread: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Sam Colwell
Next in thread: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Anthony Tekatch

Subject: Re: watch window for gpsim gui
From: Scott Dattalo ####@####.####
Date: 9 Jan 2000 18:49:19 -0000
Message-Id: <Pine.LNX.4.05.10001091004550.26392-100000@tempest.blackhat.net>


On Sun, 9 Jan 2000, Ralf Forsberg wrote:

> 
> I'm about to implement a <subj>.
> 
> Here's what I'll do if nobody says anything:
> 
>  - There will be three formats: hex, dec, bin. A right-click menu
>    selects witch of the columns to display
>  - Each bit in binary-format columns will be easily 
>    toggleable (is that a word?) by clicking on it.
>  - Adding watches is done by selecting them in the registersheet
>    and do right-click->"watch...".
>  - "Del" in watch window clears selected watch(es).

Sounds great!

> 
> I'll use a clist since they are so damn convinient.
> 
> 
> How useful would it be to see the names of the bits for registers in
> a special "details" window?

I think this would be somewhat difficult to do in an arbitrary way. Right
now, the bit names - if they're defined at all - come to gpsim as constant
defined in the .cod file. There is no type information associated with
them. So somehow you would have to know what the bit names are. This
information is present in the form of enumerated constants throughout the
files supporting the various pic subsystems. Unfortunately, the ascii
names for these constants aren't avaliable. How were you thinking about
implementing this?

> How useful would it be to have a graphical representation of the pic
> in gpsim.

Version 0.17.1 (which only one other person besides me has seen) contains
a new cli option for the processor command. "processor pins" will display
a tabulated/quasi graphical, ASCII representation of a pic processor and
show pin names, pin numbers, and the pin states (only H and L for high and
low - analog states are not shown yet). 

Here's an example dump for the c84:

  +--+---------\/---------+--+
L | 1| porta2      porta1 |18| L
L | 2| porta3      porta0 |17| L
L | 3| porta4             |16|
  | 4|                    |15|
  | 5|                    |14|
H | 6| portb0      portb7 |13| H
H | 7| portb1      portb6 |12| H
H | 8| portb2      portb5 |11| H
H | 9| portb3      portb4 |10| H
  +--+--------------------+--+

The new code is cmd_processor.cc in the function dump_pins(). I added a
couple of new base class functions to the pic_processor class that will
support access to the pin names, pin states, and to package stuff in
general. We'll want to place wrappers around these in interface.cc . (At
some point, interface.cc is going to have to be split...)

At some point I'd like to also show the stimuli attached to the pins.


(Ralf knows most of what I'm going to say next). The gui version should be
able to easily duplicate this basic functionality. However, to make it
useful, cross references such as those that are present between the file
registers and the register_window(s) will also be needed. This will allow
the window to be dynamically updated. An added bonus would be to toggle a
pin state by simple clicking on the state indicator.

When we get to the point where stimuli are an integral part of the gui it
would be nice to be able to edit the stimuli that attached to the pins.


BTW, the latest development version of gpsim can be obtained from:

http://www.dattalo.com/gnupic/gpsim-0.17.1.tar.gz

Scott


Previous by date: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Sam Colwell
Next by date: 9 Jan 2000 18:49:19 -0000 Re: gpasm, Scott Dattalo
Previous in thread: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Sam Colwell
Next in thread: 9 Jan 2000 18:49:19 -0000 Re: watch window for gpsim gui, Anthony Tekatch


Powered by ezmlm-browse 0.20.