This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: problems simulating register-only architecture...
- To: apl at alum dot mit dot edu
- Subject: Re: problems simulating register-only architecture...
- From: Ben Elliston <bje at redhat dot com>
- Date: Fri, 25 May 2001 08:35:29 +1000 (EST)
- Cc: cgen at sourceware dot cygnus dot com
- References: <200105242031.QAA10298@iron.>
>>>>> "lehotsky" == lehotsky <lehotsky@earthlink.net> writes:
lehotsky> But when I set up my "model" as follows, it doesn't work; is it
lehotsky> possible that the define-pmacro EA is evaluated at the
lehotsky> wrong time?
You can debug such problems by raising the level of verbosity in the
sim generator. Set CGENFLAGS="-v -v -v -v" (I think).
lehotsky> Or, do I need to write my "get" and "set" accessors as
lehotsky> escapes to C code to make this work?
That shouldn't be necessary. If it is, it's a bug.
lehotsky> ; The actual memory.... 512 32 bit words == 2048 bytes
lehotsky> ;
lehotsky> (define-hardware
lehotsky> (name h-memory)
lehotsky> (comment "all addressable data memory")
lehotsky> (type memory QI (2048))
lehotsky> )
lehotsky> (define-pmacro (EA index)
Is your pmacro really defined *after* the hardware elements? Have you
tried placing it before all of its applications?
Ben