public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Delayed Memory Writes
@ 2009-08-04 17:38 Joseph A
  2009-08-04 17:51 ` Frank Ch. Eigler
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph A @ 2009-08-04 17:38 UTC (permalink / raw)
  To: cgen


When I write a line of code such as
(set (delay 2 (mem SI r)) a)
or
(set (delay 2 (reg SI h-memory r)) a)
I get the error "ERROR: Unbound variable: set".  Is there some special
notation for delayed memory stores, or a different way to accomplish this?

Thanks
Joseph
-- 
View this message in context: http://www.nabble.com/Delayed-Memory-Writes-tp24813100p24813100.html
Sent from the Sourceware - cgen list mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Delayed Memory Writes
  2009-08-04 17:38 Delayed Memory Writes Joseph A
@ 2009-08-04 17:51 ` Frank Ch. Eigler
  2009-08-04 18:58   ` Joseph A
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Ch. Eigler @ 2009-08-04 17:51 UTC (permalink / raw)
  To: Joseph A; +Cc: cgen

Hi -

> When I write a line of code such as
> (set (delay 2 (mem SI r)) a)
> or
> (set (delay 2 (reg SI h-memory r)) a)
> I get the error "ERROR: Unbound variable: set".  Is there some special
> notation for delayed memory stores, or a different way to accomplish this?

It nests the other way:

   (delay 1 (set FOO BAR))

- FChE

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Delayed Memory Writes
  2009-08-04 17:51 ` Frank Ch. Eigler
@ 2009-08-04 18:58   ` Joseph A
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph A @ 2009-08-04 18:58 UTC (permalink / raw)
  To: cgen




Frank Ch. Eigler wrote:
> 
> 
> It nests the other way:
> 
>    (delay 1 (set FOO BAR))
> 
> - FChE
> 
> 
When nested this way I get the error 
"ERROR: In procedure string-append:
ERROR: Wrong type argument (expecting STRINGP): set"

The code 
(set (delay 2 (reg SI h-gr r)) a)
works fine, as do delayed sets of hardware other than memory.  The error
only appears when I try to do a delayed memory set.  The mt port uses delays
nested in this manner, and the sh port uses delays nested in the manner you
suggested.  I'm a little confused.  Are they both valid?  Perhaps I'm using
an old version?

Thanks
Joseph
-- 
View this message in context: http://www.nabble.com/Delayed-Memory-Writes-tp24813100p24814271.html
Sent from the Sourceware - cgen list mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-04 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 17:38 Delayed Memory Writes Joseph A
2009-08-04 17:51 ` Frank Ch. Eigler
2009-08-04 18:58   ` Joseph A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).