Skip to content

Commit

Permalink
Create vcd file from sim if -sim-cmp fails
Browse files Browse the repository at this point in the history
  • Loading branch information
RCoeurjoly committed May 28, 2024
1 parent e621460 commit 4316eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/single_bit/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ run_test() {

# Run yosys to process each Verilog file
if ${BASE_PATH}yosys -p "read_verilog $verilog_file; sim -r ${base_name}_functional_cxx.vcd -scope my_module -vcd ${base_name}_yosys_sim.vcd -timescale 1us -sim-cmp"; then
# ${BASE_PATH}yosys -p "read_verilog $verilog_file; sim -vcd ${base_name}_yosys_sim.vcd -r ${base_name}_functional_cxx.vcd -scope my_module -timescale 1us"
echo "Yosys sim $verilog_file successfully."
else
${BASE_PATH}yosys -p "read_verilog $verilog_file; sim -vcd ${base_name}_yosys_sim.vcd -r ${base_name}_functional_cxx.vcd -scope my_module -timescale 1us"
echo "Yosys simulation of $verilog_file failed. There is a discrepancy with functional cxx"
failing_files["$verilog_file"]="Yosys sim failure"
fi
Expand Down

0 comments on commit 4316eba

Please sign in to comment.