public FunnelModule(Fpga fpga) {
super("funnel");
- Module.SinkPort outp = createOutputPort("out", fpga.WIDTH_PACKET, "");
+ Module.SinkPort outp = createOutputPort("out", fpga.WIDTH_PACKET);
Module.SourcePort in1p = createInputPort("in1", fpga.WIDTH_PACKET);
Module.SourcePort in2p = createInputPort("in2", fpga.WIDTH_PACKET);
public void addInput(FabricElement in, Module.Port source) {
throw new RuntimeException("cannot add inputs to a funnel once constructed");
}
- public FpgaPath getPath(FabricElement dest, BitVector signal) {
+ public int getPathLength(FpgaDestination dest) { return out.getPathLength(dest)+1; }
+ public FpgaPath getPath(FpgaDestination dest, BitVector signal) {
return out.getPath(dest, signal);
}
}