KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - RE: [systemc-forum] Modeling tri-state signal
|
Message Thread:
Previous |
Next
|
- To: "systemc-forum@xxxxxxxxxxxxxxxxxxx" <systemc-forum@xxxxxxxxxxxxxxxxxxx>
- From: "Somervill, Kevin M. (LARC-D203)" <kevin.m.somervill@xxxxxxxx>
- Date: Tue, 20 Mar 2012 12:13:22 -0500
- Send Email to systemc-forum@lists.accellera.org:
- Send new message
- Reply to this message
|
I replied directly to David, apologies. PEBKAC. In setting the hi-z state for my vector, I used .write(“Z”) as opposed to .write(“ZZZZZZZZ”). Is there a way to an entire array to a value similar to (others => ‘Z’) in VHDL? Thanks. Kevin From: david.black@xxxxxxxxxx [mailto:david.black@xxxxxxxxxx] Sent: Monday, March 19, 2012 10:43 AM To: Somervill, Kevin M. (LARC-D203) Cc: systemc-forum@xxxxxxxxxxxxxxxxxxx Subject: Re: [systemc-forum] Modeling tri-state signal sc_signal_rv is the correct approach. You probably need to post your code here if you want help.
David C Black, Senior Consulting Engineer Doulos Inc http://www.Doulos.com Voice: 512.850.4322 Skype: dcblack FAX: 888.467.4609 Doulos - Developing Design Know-how This message (and associated files) may contain information that is confidential proprietary, privileged, or subject to copyright. It is intended solely for the use of the individual to whom it is addressed and others authorized to receive it. If you have received this email in error, please notify the sender and delete all copies. This message may contain personal views which are not the views of Doulos unless specifically stated.
-----<systemc-forum@xxxxxxxxxxxxxxxxxxx> wrote: -----
To: "systemc-forum@xxxxxxxxxxxxxxxxxxx" <systemc-forum@xxxxxxxxxxxxxxxxxxx> From: "Somervill, Kevin M. (LARC-D203)" Sent by: Date: 03/19/2012 07:22AM Subject: [systemc-forum] Modeling tri-state signal Hello, I’m trying to model bidirectional I/O (at a low level) and I get the multiple drivers error or what I believe is incorrect resolution on ‘Z’. I’ve been googling for about a week and have not found anything that shows me how to model tri-state signal. In the spec, it states that I should use sc_signal_rv, but I don’t get the expected output. If I drive a ‘Z’ at one place and a ‘1’, I get ‘X’. If I drive a ‘Z’ from one driver, but a ‘0’ from the other, I get a ‘0’. I expect that there’s an obvious fix for this issue, but I’ve not been able to find it. Any suggestions? Thanks, Kevin |
|
|