StanfordAHA / Halide-to-Hardware

Other
74 stars 12 forks source link

Negative const syntax error in harris compute #105

Closed dillonhuff closed 3 years ago

dillonhuff commented 3 years ago

When I try to generate test verilog for harris I get the follwing error:

cmd: ${COREIR_PATH}/bin/coreir --load_libs commonlib --input harris.json --output harris.v
cmd: verilator -Wall --cc harris.v --exe --build harris_verilog_tb.cpp --top-module harris -Wno-lint
%Error: harris.v:45542:8: syntax error, unexpected const, expecting IDENTIFIER
45542 | ) const-255__383 (
      |        ^
%Error: harris.v:45701:8: syntax error, unexpected const, expecting IDENTIFIER
45701 | ) const-255__283 (
      |        ^
%Error: Exiting due to 2 error(s)

This seems to come from the harris compute file: https://github.com/dillonhuff/clockwork/blob/b4dc132aa141f610421159bccf8ae21b8ae353ce/coreir_compute/harris_compute.json#L239