| |
- builtins.object
-
- IntermediateBuilder
class IntermediateBuilder(builtins.object) |
|
If we give an xml logisim file to this class, it will make an intermediate tree (makeIntermediateTree) |
|
Methods defined here:
- __init__(self, filename, collide=False)
- Constructor
- addTunnelsToConnectionList(self, annotatedTunnelList, annotatedComponentList, annotatedConnectionList)
- List with all the tunnels is added to the connectionslist, before we can add the tunnel we need to find out which tunnel object gets the input signal
- bindCollidingWires(self, wiresToInsert)
- If there are wires, that end in the same point and colliding is allowed, we need to make a new wire, that binds those wires into 1 wire --- Optimized version
- bindCollidingWires2(self, wiresToInsert)
- If there are wires, that end in the same point and colliding is allowed, we need to make a new wire, that binds those wires into 1 wire --- Original Version
- bindCompAndSplitterWithInputs(self, annotatedComponentList, annotatedConnectionList, annotatedSplitterList, circuitName='')
- We bind all the comps with their input wires
- bindCompAndSplitterWithOutputs(self, annotatedComponentList, annotatedConnectionList, annotatedSplitterList, circuitName='')
- Bind the comps with their output wires
- bindCompAndSplitterWithWires(self, annotatedComponentList, annotatedConnectionList, annotatedSplitterList, circuitName='')
- We bind all the comps with their wires
- convertROM(self, string)
- getAbstractRegisterList(self, circuit)
- Returns a list with all the abstract register elements
- getAnnotatedArithmeticList(self, circuit)
- Returns a list with all the arithmetics and its important attributes
- getAnnotatedBaseList(self, circuit)
- Returns a list with all the bases and its important attributes
- getAnnotatedGateList(self, circuit)
- Returns a list with all the gates and its important attributes
- getAnnotatedInOutList(self, circuit)
- Returns a list with all the in- and outputs
- getAnnotatedPinList(self, circuit)
- Returns a list with all the pins and its important attributes (will be invoked when we parse a circuit)
(We need to know this before all the rest if we want to include this circuit in another circuit)
- getAnnotatedPlexerList(self, circuit)
- Returns a list with all the plexers and its important attributes
- getAnnotatedResistorList(self, circuit)
- Returns a list with all the resistors and its coordinates
- getAnnotatedSplitterList(self, circuit)
- Returns a list with all the splitters and its special information
- getAnnotatedTunnelList(self, xmlCircuit)
- Returns a list with al the tunnels, grouped by their label
- getAnnotatedWireList(self, circuit)
- Returns a list with all the wires and its coordinates
- getBitExtenderList(self, circuit)
- Returns a list with all the bitExtenders
- getFlipFlopList(self, circuit)
- Returns a list with all the flipflops
- getImportedList(self, circuit, circuitTupleList)
- Returns a list with all the imported circuits
- getLargeMemory(self, circuit)
- Returns a list with all the large memories
- getMapping(self, circuit)
- Search all the mappings for this circuit
- getMemoryList(self, circuit)
- Returns a list with all the memories
- getPriorityEncoderList(self, circuit)
- Returns a list with all the priorityEncoders
- getRandomList(self, circuit)
- Returns a list with all the random memory elements
- getShiftRegister(self, circuit)
- Returns a list with all the shift register elements
- makeInt(self, value)
- Make an int, use rounding to nearest addressable coordinate
Addressable coordinates are 0, 10, 20, ...
- makeIntermediateTree(self)
- Transforms logisim xml file into an intermediate abstract tree
- makeWiresForSplitters(self, annotatedSplitterList)
- For each coordinate of the splitter we make a wire
- searchInputTunnel(self, tunnelList, annotatedComponentList, annotatedConnectionList, outputList)
- Returns the index nr of the tunnel who gets the input signal
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |