Hello,
I would like to use R_TRIG with some condition after like below:
R_TRIG(IN:=Start1)
if R_TRIG.Q THEN do something if something then do end_if end_if
but when I do that after the condition with R_TRIG.Q, all of the condition are blocked i don't know why if U can help me
oneshot : R_Trig; oneshot(clk:=start1); if oneshot.q then something := true; if something then otherThings := true; end_if end_if if reset then something := false; otherThings := false; end_if
Keep in mind, oneshot.q is only ON for one scan once start1 goes true. Oneshot.q goes off after one scan even if start1 remains true.
I hope you find this helpful
-krstech
Log in to post a comment.
Hello,
I would like to use R_TRIG with some condition after like below:
R_TRIG(IN:=Start1)
if R_TRIG.Q THEN
do something
if something then
do
end_if
end_if
but when I do that after the condition with R_TRIG.Q, all of the condition are blocked i don't know why if U can help me
Keep in mind, oneshot.q is only ON for one scan once start1 goes true. Oneshot.q goes off after one scan even if start1 remains true.
I hope you find this helpful
-krstech
Last edit: krstech 2022-03-09