@@ -4,6 +4,7 @@ local i = 1
44CPUGateActions [" selection-2-mux" ] = {
55 order = i ,
66 name = " 2-to-1 Mux" ,
7+ description = " Selects a value out of 2 choices and outputs 1" ,
78 inputs = {" Select" , " A" , " B" },
89 output = function (gate , S , ...)
910 local s = math.floor (S )
@@ -20,6 +21,7 @@ i = i + 1
2021CPUGateActions [" selection-4-mux" ] = {
2122 order = i ,
2223 name = " 4-to-1 Mux" ,
24+ description = " Selects a value out of 4 choices and outputs 1" ,
2325 inputs = {" Select" , " A" , " B" , " C" , " D" },
2426 output = function (gate , S , ...)
2527 local s = math.floor (S )
@@ -36,6 +38,7 @@ i = i + 1
3638CPUGateActions [" selection-8-mux" ] = {
3739 order = i ,
3840 name = " 8-to-1 Mux" ,
41+ description = " Selects a value out of 8 choices and outputs 1" ,
3942 inputs = {" Select" , " A" , " B" , " C" , " D" , " E" , " F" , " G" , " H" },
4043 output = function (gate , S , ...)
4144 local s = math.floor (S )
@@ -52,6 +55,7 @@ i = i + 1
5255CPUGateActions [" selection-16-mux" ] = {
5356 order = i ,
5457 name = " 16-to-1 Mux" ,
58+ description = " Selects a value out of 16 choices and outputs 1" ,
5559 inputs = {" Select" , " A" , " B" , " C" , " D" , " E" , " F" , " G" , " H" , " I" , " J" , " K" , " L" , " M" , " N" , " O" , " P" },
5660 output = function (gate , S , ...)
5761 local s = math.floor (S )
@@ -68,6 +72,7 @@ i = i + 1
6872CPUGateActions [" selection-2-demux" ] = {
6973 order = i ,
7074 name = " 1-to-2 Demux" ,
75+ description = " Depending on what Select is, routes In to a specific output" ,
7176 inputs = {" Select" , " In" },
7277 outputs = {" A" , " B" },
7378 output = function (gate , S , I )
@@ -87,6 +92,7 @@ i = i + 1
8792CPUGateActions [" selection-4-demux" ] = {
8893 order = i ,
8994 name = " 1-to-4 Demux" ,
95+ description = " Depending on what Select is, routes In to a specific output" ,
9096 inputs = {" Select" , " In" },
9197 outputs = {" A" , " B" , " C" , " D" },
9298 output = function (gate , S , I )
@@ -106,6 +112,7 @@ i = i + 1
106112CPUGateActions [" selection-8-demux" ] = {
107113 order = i ,
108114 name = " 1-to-8 Demux" ,
115+ description = " Depending on what Select is, routes In to a specific output" ,
109116 inputs = {" Select" , " In" },
110117 outputs = {" A" , " B" , " C" , " D" , " E" , " F" , " G" , " H" },
111118 output = function (gate , S , I )
@@ -125,6 +132,7 @@ i = i + 1
125132CPUGateActions [" selection-16-demux" ] = {
126133 order = i ,
127134 name = " 1-to-16 Demux" ,
135+ description = " Depending on what Select is, routes In to a specific output" ,
128136 inputs = {" Select" , " In" },
129137 outputs = {" A" , " B" , " C" , " D" , " E" , " F" , " G" , " H" , " I" , " J" , " K" , " L" , " M" , " N" , " O" , " P" },
130138 output = function (gate , S , I )
0 commit comments