systemc-clang icon indicating copy to clipboard operation
systemc-clang copied to clipboard

run-compare.py: Only generating Verilog gives issues when --hdl is used

Open rseac opened this issue 3 years ago • 0 comments

It seems that the options for run-compare.py have some dependencies that are not intuitive.

The example below works fine (taken from the add example).

python3 -B $SYSTEMC_CLANG/tests/verilog-conversion/run-compare.py \
  hdl-to-v \
  --output-dir results/ \
  --hdl golden/add_hdl.txt \
  --verbose

However, the --hdl flag is to force checking that the output conforms to the golden. I would think that when it is removed, the conversion to Verilog should continue.

python3 -B $SYSTEMC_CLANG/tests/verilog-conversion/run-compare.py \
  hdl-to-v \
  --output-dir results/ \
  --verbose

But the error received is: ValueError: Action 'hdl-to-v' and --hdl is not compatible

rseac avatar Jan 18 '21 16:01 rseac