I am making circuits in UPPAAL using basic gates. For this, I instantiate these gates in system declaration to make required circuit. I declared I/O of gates in parameter section and then instantiate these parameter values with required I/O variables in system declaration to make a particular circuit.
let suppose suppose i want to make full adder from 2 Xor,2 And , 1 Or gate. when i run simulation, any one of gate start randomly without following circuit sequence, i-e some time Or simulate first, 2nd Xor simulate first. In order to avoid this i declare some communication channels, and some variables and add these channels and variables in parameters section so that gates simulated in a fix sequence. But after adding channels and variables , i suffer with error- "memory exhausted".
In model-checker Nusmv, if we instantiate smaller modules in a main module, we can also write some code in main along with instantiation, which minimizes number of variables in module instantiation. can we do similar in uppaal. Is there any way to instantiate one template into other. or any hint for making circuits from basic gates without suffering memory error or with minimum parameters. am I adopting right technique for making big circuit from smaller circuits. I used GUI based uppaal. Thanks for your time and help