KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: [systemc-forum] problem of value's update...
|
Message Thread:
Previous |
Next
|
- To: KEDIDI DHEKRA <k_dhekra@xxxxxxxx>
- From: Maurizio Vitale <maurizio.vitale@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 01 Dec 2009 09:19:17 -0500
- Cc: Mike Lewis <Mike.Lewis@xxxxxxxxxxxxxxxxx>, systemc-forum@xxxxxxxxxxxxxxxxx
- Send Email to systemc-forum@lists.systemc.org:
- Send new message
- Reply to this message
|
>>>>> "KEDIDI" == KEDIDI DHEKRA <k_dhekra@xxxxxxxx> writes:
KEDIDI> Hi again! I have another problem when simulation: When I
KEDIDI> put in my code: Q2.write( Q2.read()+ Q1.read() )
KEDIDI> ;U2.write(C2.read()*Q2.read());} in simulation the value of
KEDIDI> U2 is calculated with the previous value of Q2 not the new
KEDIDI> value calculated in the equation:Q2.write( Q2.read()+
KEDIDI> Q1.read() ) ; how to solve this porblem?? thanks a lot...
KEDIDI> best regards Dhekra
assign Q2.read()+Q1.read() to a temporary and use that both as an argument to
Q2.write and as a factor in C2.read()*temp.
OTH,
Maurizio
--
|
|