Skip to content

Is there a way to generate higher radix adders? #134

@rptii

Description

@rptii

I've tried using radix=4 on forest. However I get the following error.

File ~/gits/synth_opt_adders/src/pptrees/ExpressionTree.py:108, in ExpressionTree.__init__(self, width, in_ports, out_ports, name, start_point, alias, no_shape, radix, idem, leaf_labels, node_defs)
    106 cocycle_out_shape = [self.radix * x for x in cocycle_out_shape]
    107 if cocycle_out_shape != self.cocycle_shape:
--> 108     raise ValueError(
    109         (
    110             "The main recurrence node of the tree"
    111             " must have the same input and output shape"
    112         )
    113     )
    114 del cocycle_out_shape
    116 # Check that node shapes are compatible with port shapes
    117 ### NOTE: INPUT SHAPE IS CURRENTLY ASSUMED TO BE [1,1,1,..]
    118 ### TO-DO: Allow for arbitrary input shape
    119 ### Need to check whole file for this implicit assumption

ValueError: The main recurrence node of the tree must have the same input and output shape

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions