Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2006 06:05:33 GMT
From:      Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/94436: [NEW PORT] devel/gpsim: Software simulator for Microchip PIC microcontrollers
Message-ID:  <200603140605.k2E65XRP066534@www.freebsd.org>
Resent-Message-ID: <200603140610.k2E6AKRX037331@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94436
>Category:       ports
>Synopsis:       [NEW PORT] devel/gpsim: Software simulator for Microchip PIC microcontrollers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 14 06:10:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Mar  8 13:14:43 PET
>Description:
gpsim is a full-featured software simulator for Microchip PIC microcontrollers distributed under 
the GNU General Public License

gpsim has been designed to be as accurate as possible. Accuracy includes the entire PIC - from 
the core to the I/O pins and including ALL of the internal peripherals. Thus it's possible to 
create stimuli and tie them to the I/O pins and test the PIC the same PIC the same way you would 
in the real world. 

gpsim has been designed to be as fast as possible. Real time simulation speeds of 20Mhz pics are 
possible. ( A 'goto $' program runs at the same speed as a 25Mhz pic when simulated on my 400Mhz 
PII Linux Box. Of course, as you add stimuli and begin interacting with peripherals, the performance drops. 
But it's still fast!) 

gpsim has been designed to be as useful as possible. (At least that's the intent - honest.) The standard 
simulation paradigm including breakpoints, single stepping, disassembling, memory inspect & change, and so 
on has been implemented. In addition, gpsim supports many debugging features that are only available with 
in-circuit emulators. For example, a continuous trace buffer tracks every action of the simulator 
(whether you want it or not). Also, it's possible to set read and write break points on values (e.g. break 
if a specific value is read from or written to a register).

WWW:	http://www.dattalo.com/gnupic/gpsim.html
>How-To-Repeat:

>Fix:
--- gpsim-0.21.11.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gpsim
#	gpsim/pkg-descr
#	gpsim/Makefile
#	gpsim/pkg-plist
#	gpsim/distinfo
#	gpsim/files
#	gpsim/files/patch-src_oss_dependent.cc
#
echo c - gpsim
mkdir -p gpsim > /dev/null 2>&1
echo x - gpsim/pkg-descr
sed 's/^X//' >gpsim/pkg-descr << 'END-of-gpsim/pkg-descr'
Xgpsim is a full-featured software simulator for Microchip PIC microcontrollers distributed under 
Xthe GNU General Public License
X
Xgpsim has been designed to be as accurate as possible. Accuracy includes the entire PIC - from 
Xthe core to the I/O pins and including ALL of the internal peripherals. Thus it's possible to 
Xcreate stimuli and tie them to the I/O pins and test the PIC the same PIC the same way you would 
Xin the real world. 
X
Xgpsim has been designed to be as fast as possible. Real time simulation speeds of 20Mhz pics are 
Xpossible. ( A 'goto $' program runs at the same speed as a 25Mhz pic when simulated on my 400Mhz 
XPII Linux Box. Of course, as you add stimuli and begin interacting with peripherals, the performance drops. 
XBut it's still fast!) 
X
Xgpsim has been designed to be as useful as possible. (At least that's the intent - honest.) The standard 
Xsimulation paradigm including breakpoints, single stepping, disassembling, memory inspect & change, and so 
Xon has been implemented. In addition, gpsim supports many debugging features that are only available with 
Xin-circuit emulators. For example, a continuous trace buffer tracks every action of the simulator 
X(whether you want it or not). Also, it's possible to set read and write break points on values (e.g. break 
Xif a specific value is read from or written to a register).
X
XWWW:	http://www.dattalo.com/gnupic/gpsim.html
END-of-gpsim/pkg-descr
echo x - gpsim/Makefile
sed 's/^X//' >gpsim/Makefile << 'END-of-gpsim/Makefile'
X# New ports collection makefile for:	gpsim
X# Date created:		2006-03-13
X# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gpsim
XPORTVERSION=	0.21.11
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	acardenas@bsd.org.pe
XCOMMENT=	Software simulator for Microchip PIC microcontrollers
X
XLIB_DEPENDS=	gtkextra-x11-2.0.1:${PORTSDIR}/x11-toolkits/gtkextra2
XRUN_DEPENDS=	gpasm:${PORTSDIR}/devel/gputils
X
XUSE_X_PREFIX=	yes
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XINSTALLS_SHLIB=	yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XOPTIONS=	EXAMPLES	"Install examples"	off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_EXAMPLES)
XPLIST_SUB+=	EXAMPLES=""
XEXAMPLES_FLAG=	true
X.else
XPLIST_SUB+=	EXAMPLES="@comment "
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in AUTHORS ChangeLog PROCESSORS README* doc/gpsim.pdf
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X.endif
X
X.if defined(EXAMPLES_FLAG)
X	@${MKDIR} ${EXAMPLESDIR}
X	@cd ${WRKSRC}/examples && \
X		${FIND} * -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
X		${FIND} -E * -type f -iregex ".*\.(asm|stc|inc)" -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
X.endif
X
X.include <bsd.port.post.mk>
END-of-gpsim/Makefile
echo x - gpsim/pkg-plist
sed 's/^X//' >gpsim/pkg-plist << 'END-of-gpsim/pkg-plist'
Xbin/gpsim
Xinclude/eXdbm/eXdbm.h
Xinclude/eXdbm/eXdbmErrors.h
Xinclude/eXdbm/eXdbmTypes.h
Xinclude/gpsim/12bit-instructions.h
Xinclude/gpsim/12bit-processors.h
Xinclude/gpsim/14bit-instructions.h
Xinclude/gpsim/14bit-processors.h
Xinclude/gpsim/14bit-registers.h
Xinclude/gpsim/14bit-tmrs.h
Xinclude/gpsim/16bit-instructions.h
Xinclude/gpsim/16bit-processors.h
Xinclude/gpsim/16bit-registers.h
Xinclude/gpsim/16bit-tmrs.h
Xinclude/gpsim/attributes.h
Xinclude/gpsim/bit.h
Xinclude/gpsim/bitlog.h
Xinclude/gpsim/breakpoints.h
Xinclude/gpsim/bytelog.h
Xinclude/gpsim/cmd_gpsim.h
Xinclude/gpsim/cmd_manager.h
Xinclude/gpsim/cod.h
Xinclude/gpsim/eeprom.h
Xinclude/gpsim/exports.h
Xinclude/gpsim/i2c-ee.h
Xinclude/gpsim/fopen-path.h
Xinclude/gpsim/gpsim_classes.h
Xinclude/gpsim/gpsim_def.h
Xinclude/gpsim/gpsim_interface.h
Xinclude/gpsim/gpsim_object.h
Xinclude/gpsim/gpsim_time.h
Xinclude/gpsim/intcon.h
Xinclude/gpsim/interface.h
Xinclude/gpsim/ioports.h
Xinclude/gpsim/lxt_write.h
Xinclude/gpsim/modules.h
Xinclude/gpsim/operator.h
Xinclude/gpsim/p12x.h
Xinclude/gpsim/p16x5x.h
Xinclude/gpsim/p16f62x.h
Xinclude/gpsim/p16x6x.h
Xinclude/gpsim/p16x7x.h
Xinclude/gpsim/p16x8x.h
Xinclude/gpsim/p16f87x.h
Xinclude/gpsim/p17c75x.h
Xinclude/gpsim/p18x.h
Xinclude/gpsim/packages.h
Xinclude/gpsim/pic-instructions.h
Xinclude/gpsim/pic-packages.h
Xinclude/gpsim/pic-processor.h
Xinclude/gpsim/pic-registers.h
Xinclude/gpsim/picdis.h
Xinclude/gpsim/pie.h
Xinclude/gpsim/pir.h
Xinclude/gpsim/processor.h
Xinclude/gpsim/program_files.h
Xinclude/gpsim/protocol.h
Xinclude/gpsim/pthread-wrap.h
Xinclude/gpsim/registers.h
Xinclude/gpsim/sim_context.h
Xinclude/gpsim/stimuli.h
Xinclude/gpsim/stimulus_orb.h
Xinclude/gpsim/symbol.h
Xinclude/gpsim/symbol_orb.h
Xinclude/gpsim/tmr0.h
Xinclude/gpsim/trace.h
Xinclude/gpsim/trigger.h
Xinclude/gpsim/trace_orb.h
Xinclude/gpsim/ttoken.h
Xinclude/gpsim/uart.h
Xinclude/gpsim/xref.h
Xinclude/gpsim/icd.h
Xinclude/gpsim/ssp.h
Xinclude/gpsim/errors.h
Xinclude/gpsim/expr.h
Xinclude/gpsim/value.h
Xlib/libgpsimcli.so.0
Xlib/libgpsimcli.la
Xlib/libgpsimcli.a
Xlib/libgpsim_eXdbm.so.0
Xlib/libgpsim_eXdbm.la
Xlib/libgpsim_eXdbm.a
Xlib/libgpsimgui.so.0
Xlib/libgpsimgui.la
Xlib/libgpsimgui.a
Xlib/libgpsim.so.0
Xlib/libgpsim.la
Xlib/libgpsim.a
Xlib/libgpsim_modules.so.0
Xlib/libgpsim_modules.la
Xlib/libgpsim_modules.a
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/PROCESSORS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README.EXAMPLES
X%%PORTDOCS%%%%DOCSDIR%%/README.MODULES
X%%PORTDOCS%%%%DOCSDIR%%/gpsim.pdf
X%%EXAMPLES%%share/examples/gpsim/12bit/p12c508_test.stc
X%%EXAMPLES%%share/examples/gpsim/12bit/p12c509_test.asm
X%%EXAMPLES%%share/examples/gpsim/12bit/pcl_test_12bit.asm
X%%EXAMPLES%%share/examples/gpsim/12bit/p12c508_test.asm
X%%EXAMPLES%%share/examples/gpsim/12bit/p12_it.asm
X%%EXAMPLES%%share/examples/gpsim/12bit/gpio_stim.stc
X%%EXAMPLES%%share/examples/gpsim/12bit/p12x.inc
X%%EXAMPLES%%share/examples/gpsim/14bit/vertical_adder.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16f877_test2.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_pwm.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/portc_stim.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_test.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/async_stim.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/eetest.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/sync_stim.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/usart_14.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c74_pwm.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/ap.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/iopin_stim.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/t.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c65_pwm.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/wdt_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/loop_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/iopin_stim.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_ccp.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/module_test.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_pwm.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/usart.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_tmr1.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/async_stim2.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16f877_test2.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/pcl_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/stim_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_ccp.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/dtmf.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/it.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/twist.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c74_test.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/async_pulse.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/sine.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16f877_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c71_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c74_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/analog_stim2.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/pulse_measure.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c65_pwm.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/mod_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/bcd.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/ioport_stim.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/time_test.stc
X%%EXAMPLES%%share/examples/gpsim/14bit/p16c64_test.asm
X%%EXAMPLES%%share/examples/gpsim/14bit/analog_stim.stc
X%%EXAMPLES%%share/examples/gpsim/16bit/p18.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/indtest18.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/it18.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/mul.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/bt18.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/calltest18.asm
X%%EXAMPLES%%share/examples/gpsim/16bit/p18c242_test.asm
X%%EXAMPLES%%share/examples/gpsim/modules/mod_test/mod_test.stc
X%%EXAMPLES%%share/examples/gpsim/modules/mod_test/mod_test.asm
X%%EXAMPLES%%share/examples/gpsim/projects/stack_test/stack_test.asm
X%%EXAMPLES%%share/examples/gpsim/projects/stack_test/stack_test.stc
X%%EXAMPLES%%share/examples/gpsim/projects/p16f628_test/f628.stc
X%%EXAMPLES%%share/examples/gpsim/projects/p16f628_test/f628.asm
X%%EXAMPLES%%share/examples/gpsim/projects/digital_stim/digital_stim.stc
X%%EXAMPLES%%share/examples/gpsim/projects/digital_stim/digital_stim.asm
X@dirrm include/eXdbm
X@dirrm include/gpsim
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%EXAMPLES%%@dirrm share/examples/gpsim/12bit
X%%EXAMPLES%%@dirrm share/examples/gpsim/14bit
X%%EXAMPLES%%@dirrm share/examples/gpsim/16bit
X%%EXAMPLES%%@dirrm share/examples/gpsim/modules/mod_test
X%%EXAMPLES%%@dirrm share/examples/gpsim/modules
X%%EXAMPLES%%@dirrm share/examples/gpsim/projects/stack_test
X%%EXAMPLES%%@dirrm share/examples/gpsim/projects/p16f628_test
X%%EXAMPLES%%@dirrm share/examples/gpsim/projects/digital_stim
X%%EXAMPLES%%@dirrm share/examples/gpsim/projects
X%%EXAMPLES%%@dirrm share/examples/gpsim
END-of-gpsim/pkg-plist
echo x - gpsim/distinfo
sed 's/^X//' >gpsim/distinfo << 'END-of-gpsim/distinfo'
XMD5 (gpsim-0.21.11.tar.gz) = 2acd268dc2dd69d1ad687253bde8dd21
XSHA256 (gpsim-0.21.11.tar.gz) = 65d1a6a867cf0ee9a030e89b928d633ce7019b275b2683d6126fe8597e87fe84
XSIZE (gpsim-0.21.11.tar.gz) = 1218332
END-of-gpsim/distinfo
echo c - gpsim/files
mkdir -p gpsim/files > /dev/null 2>&1
echo x - gpsim/files/patch-src_oss_dependent.cc
sed 's/^X//' >gpsim/files/patch-src_oss_dependent.cc << 'END-of-gpsim/files/patch-src_oss_dependent.cc'
X--- src/os_dependent.cc	Thu Aug 25 16:57:41 2005
X+++ src/os_dependent.cc	Mon Mar 13 23:07:58 2006
X@@ -349,7 +349,7 @@
X 
X char * get_error_message() {
X #ifndef _WIN32
X-  return dlerror();
X+  dlerror();
X #else
X   return g_win32_error_message(GetLastError());
X #endif
END-of-gpsim/files/patch-src_oss_dependent.cc
exit
--- gpsim-0.21.11.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603140605.k2E65XRP066534>