These two modules are an extension to the GMOD.copy_on_change module.
module modCopyOnTrigger <compile_subs = 0> { prim trigger <NEportLevels={2,0}>; prim input <NEportLevels={2,0}>; prim output <NEportLevels={0,2}>; boolean on_inst = 1; omethod+notify_inst+req Update( .trigger +req+notify, .input +read+req, .output +write ) = "GMODcopy_on_change"; }; module modCopyOnNonReqTrigger <compile_subs = 0> { prim trigger <NEportLevels={2,0}>; prim input <NEportLevels={2,0}>; prim output <NEportLevels={0,2}>; boolean on_inst = 1; omethod+notify_inst+req Update( .trigger +notify, .input +read, .output +write ) = "GMODcopy_on_change"; };
This is an extension to the beloved GMOD.copy_on_change, with a new V definition. Handy for building UI's. The new macro allows inputs as optional, rather than required.
trigger
Used to trigger the copy on change module to copy the input value to the output value if the value has changed.
input
Input value which will be copied to the output value when the trigger is called and the value has not just updated but is also a different value.
output
Copy of the changed input value. Is set (written to) only when the input value has changed.
n/a
n/a
iac_proj/copontrg/cotgmods.v contains the modCopyOnTrigger module and the modCopyOnNonReqTrigger module V definitions.
The low-level CopyOnTriggerMods library containing the modules modCopyOnTrigger and modCopyOnNonReqTrigger does not specify a process. By default the express process will be used.
Brian Selle, Leon Thrane, Advanced Visual Systems Inc. Documentation - Ian Curington, Advanced Visual Systems Inc.
Paul G. Lever
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL
n/a