added more bus bricks

This commit is contained in:
Redo
2020-05-17 08:22:00 -05:00
parent ba94172cc8
commit 74401cd7f6
44 changed files with 78241 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
datablock fxDTSBrickData(LogicGate_8BitEnabler_Data)
{
brickFile = $LuaLogic::Path @ "bricks/blb/1x8f_8i_8o_p.blb";
@@ -130,3 +131,28 @@ datablock fxDTSBrickData(LogicGate_8BitEnabler_Data)
logicPortUIName[17] = "Q0";
};
lualogic_registergatedefinition("LogicGate_8BitEnabler_Data");
datablock fxDTSBrickData(LogicGate_8BitEnablerAL_Data : LogicGate_8BitEnabler_Data){
uiName = "8 Bit Enabler Active Low";
iconName = $LuaLogic::Path @ "icons/8 Bit Enabler Active Low";
logicUIName = "8 Bit Enabler Active Low";
logicUIDesc = "8 bit enabler with enable propagate; enable is active low";
logicUpdate =
"return function(gate) " @
" if not gate.ports[9].state then " @
" for i = 1, 8 do " @
" gate.ports[i+10]:setstate(gate.ports[i].state) " @
" end " @
" gate.ports[10]:setstate(false) " @
" elseif gate.ports[9]:isrising() then" @
" for i = 1, 8 do " @
" gate.ports[i+10]:setstate(false) " @
" end " @
" gate.ports[10]:setstate(true) " @
" end " @
"end"
;
};
lualogic_registergatedefinition("LogicGate_8BitEnablerAL_Data");