######################################################################## ### FILE: llacsimulator.mod ### PURPOSE: Set up simulated LLAC register maps from ".ini" files. ### HISTORY: ### 2010-10-25 Tor Slettnes ### Created ### ### Copyrights (C) 2005-2010 Applied Biosystems. All rights reserved. ######################################################################## ### Set up a simulated register table for an LLAC subsystem LLAC:DEFINT SimulatorTables $Node$ $SimConfig$ $RegConfig$ ### Load into Global LLAC Table PRELOAD -node=$Node$ -base=0x0000 -suffix='?' \ llac.ini GlobalTable $SimConfig$ GlobalTable ### Load into Application Table SET ApplicationTable $(UINT? -size=2 $Node$ 0x0007) PRELOAD -node=$Node$ -base=${ApplicationTable} -suffix='?' \ $RegConfig$ ApplicationTable \ $SimConfig$ ApplicationTable ### For each type of table, determine the table index address ### and the number of tables. ITERate -key=TableType $(CONF* $SimConfig$ ApplicationTable) ### Set up the table index. SET TableIndex $(CONF? -ignoreMissing $SimConfig$ ApplicationTable ${TableType}) SET Tables $(CONF* $SimConfig$ ${TableType}) SET NumTables $[ len("${Tables}".split()) ] UINT -size=2 $Node$ ${TableIndex:-0} ${NumTables} ITERate -key=idx "${Tables}" SET tableAddress $[ ${TableIndex} + (0x0080 * ${idx}) ] HEX -size=2 $Node$ $[ ${TableIndex} + ${idx} ] ${tableAddress} SET Preload $(CONF? $SimConfig$ ${TableType} ${idx}) PRELOAD -node=$Node$ -base=${tableAddress} \ $RegConfig$ ${TableType} \ $SimConfig$ ${Preload}