stanford-ppl / spatial-lang

Spatial: "Specify Parameterized Accelerators Through Inordinately Abstract Language"
MIT License
100 stars 11 forks source link

Cat API #258

Open mattfel1 opened 6 years ago

mattfel1 commented 6 years ago

Do we have an API for concatenate? Or is the only way to do it today is

1) Make a struct or pack the elements together 2) Cast them to the full bitwidth, <<, and ^ the numbers together

?

dkoeplin commented 6 years ago

At the moment the only API we have for this is

val concated = Vector.concatN(Seq(vec1, vec2, ...))

This assumes all the vectors have the same type. We should probably add a more general API