Pipeline x to solve logic error in weighted_sum.v