11/7/2010 8:58 AM | |
Posts: 2348 Rating:
|
If you mean FIFO buffer - check here /tf/WW/en/Posts/28933 |
This contribution was helpful to
1 thankful Users |
11/7/2010 2:28 PM | |
Joined: 1/28/2009 Last visit: 8/26/2024 Posts: 6846 Rating:
|
Dear Aret First trip out signal is matter of occurence of some signals (not FIFO queue) . Check the link to see a survey on the title.These STL codes illutrate one way to implement it.It is not the only way to do this task.I have tested my codes, you can try it yourself or may alter and optimize it.Check the attachment for result of my test. hope to be useful. hdhosseini [code] O #trip_signal1 O #trip_signal2 O #trip_signal3 O #trip_signal4 //4 signals considered = #trip1 /////////// A #trip1 JC ein L 0 T #trip_value JU END ein: NOP 0 A( L #trip_value L 0 ==I ) = #temp //BOOL ////////////////// A #temp A #trip_signal1 JCN ZW L 1 T #trip_value JU END ZW: NOP 0 ///////////////// A #temp A #trip_signal2 JCN DR L 2 T #trip_value JU END DR: NOP 0 /////////////// A #temp A #trip_signal3 JCN VIE L 3 T #trip_value JU END VIE: NOP 0 /////////////// A #temp A #trip_signal4 JCN FUNF L 4 T #trip_value JU END FUNF: NOP 0 /////////////// END: NOP 0[/code] Attachmentfirst out.zip (281 Downloads) |
Last edited by: hdhosseini at: 06/03/2019 13:26:59 |
|
This contribution was helpful to
2 thankful Users |
11/10/2010 12:07 AM | |
Posts: 21 Rating:
|
Thank you all |
Follow us on