dgrnbrg / piplin

Compile Clojure to FPGAs
piplin.org
93 stars 10 forks source link

Don't generate {0'b0, x} #53

Open dgrnbrg opened 11 years ago

dgrnbrg commented 11 years ago

Instead of generating {0'b0, x}, we must generate x, since XST doesn't like the former (and I'm assuming other tools won't like it either).

dgrnbrg commented 11 years ago

Solved this 80% by having bit-cat's verilog generator not generate a concat operator ({x,y}) if x or y is zero width, but it now throws an exception if x and y are both zero width. A better way that handles all cases would be to preprocess for logic simplification where we prune out all zero-width concats.