forked from HEL/circuiteria
		
	fixed multiplexers with named ports + minor changes
This commit is contained in:
		| @@ -48,7 +48,6 @@ | ||||
|   stroke: black + 1pt, | ||||
|   id: "", | ||||
|   debug: ( | ||||
|     grid: false, | ||||
|     ports: false | ||||
|   ) | ||||
| ) = { | ||||
|   | ||||
| @@ -26,7 +26,6 @@ | ||||
|   stroke: black + 1pt, | ||||
|   id: "", | ||||
|   debug: ( | ||||
|     grid: false, | ||||
|     ports: false | ||||
|   ) | ||||
| ) = element.elmt( | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|   auto-ports: true, | ||||
|   ports-y: (), | ||||
|   debug: ( | ||||
|     grid: false, | ||||
|     ports: false | ||||
|   ) | ||||
| ) = draw.get-ctx(ctx => { | ||||
|   | ||||
| @@ -36,7 +36,6 @@ | ||||
|   stroke: black + 1pt, | ||||
|   id: "", | ||||
|   debug: ( | ||||
|     grid: false, | ||||
|     ports: false | ||||
|   ) | ||||
| ) = { | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|   stroke: black + 1pt, | ||||
|   id: "", | ||||
|   debug: ( | ||||
|     grid: false, | ||||
|     ports: false | ||||
|   ) | ||||
| ) = { | ||||
| @@ -45,6 +44,10 @@ | ||||
|       let bits = util.lpad(str(i, base: 2), nbits) | ||||
|       ports.push((id: "in" + str(i), name: bits)) | ||||
|     } | ||||
|   } else { | ||||
|     for (i, port) in entries.enumerate() { | ||||
|       ports.push((id: "in" + str(i), name: port)) | ||||
|     } | ||||
|   } | ||||
|    | ||||
|   element.elmt( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user