comp.lang.ada
 help / color / mirror / Atom feed
From: adolph@ssc-vax.UUCP (Mark C. Adolph)
Subject: Read-Only Variables
Date: 27 Jul 88 17:40:42 GMT	[thread overview]
Message-ID: <2125@ssc-vax.UUCP> (raw)

We've come across an interesting problem here.  We're trying to build a
model of a processor that we can use in simulation.  In at least one
case, we have a register with bits that, in the hardware, can be read by
software but only modified by hardware.  How does one declare a record
component that is only visible for reading but can be updated
internally?  Making it private and declaring a function to allow reading
isn't appropriate as it would not be a correct model of the situation.

-- 

					-- Mark A.
					...uw-beaver!ssc-vax!adolph

                 reply	other threads:[~1988-07-27 17:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox