From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Lehotsky To: Ben Elliston Cc: apl@alum.mit.edu, cgen@sourceware.cygnus.com Subject: Re: problems simulating register-only architecture... Date: Thu, 24 May 2001 16:18:00 -0000 Message-id: References: <200105242031.QAA10298@iron.> <15117.36017.164552.332785@scooby.apac.redhat.com> X-SW-Source: 2001-q2/msg00076.html At 8:35 AM +1000 5/25/01, Ben Elliston wrote: > >>>>> "lehotsky" == lehotsky 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). I assume this is a make flag, not an environment variable. Thanks for the suggestion... > > 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? Yes. I was wondering if that would work, but nothing complained...... I'll try putting things in predeclared order.... -- Al -- ------------------------------------------------------------------------ Quality Software Management http://home.earthlink.net/users/~qsmgmt apl@alum.mit.edu (978)287-0435 Voice (978)808-6836 Cell (978)287-0436 Fax Software Process Improvement and Management Consulting Language Design and Compiler Implementation