Moreshwar Salpekar Posted June 28, 2021 Report Share Posted June 28, 2021 I want to know if a method can be triggered only when two two signals or ports are high. To be specific, I want my module (Write_Data_out) to output data only when all of the following conditions hold: 1. Clock positive edge is detected 2. Address Valid (AV) signal is low 3. Read (RD) is High. The method (Write_Data_out) must not be triggered otherwise. I cannot find any information or examples to do this. The only way i see this that I declare a method sensitive to clock and in the method, do processing if the AV is low RD is high else return from method the && operator does not support sc_event_finder and << does not support bool (if << operator for sensitive supported boo, i could do something like this clk.posedge()& (!AV.read()) && (RD.read). where AV and RD are sc_in<bool> Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.