Skip to content

Commit

Permalink
Test uses STP
Browse files Browse the repository at this point in the history
  • Loading branch information
gussmith23 committed Dec 14, 2023
1 parent 15cfab0 commit eb753b1
Showing 1 changed file with 6 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: outfile=$(mktemp)
// RUN: (racket $LAKEROAD_DIR/bin/main.rkt \
// RUN: --solver cvc5 \
// RUN: racket $LAKEROAD_DIR/bin/main.rkt \
// RUN: --solver stp \
// RUN: --verilog-module-filepath %s \
// RUN: --architecture xilinx-ultrascale-plus \
// RUN: --template dsp \
Expand All @@ -13,35 +13,8 @@
// RUN: --input-signal b:13 \
// RUN: --input-signal c:13 \
// RUN: --timeout 90 \
// RUN: || true) \
// RUN: > $outfile \
// RUN: 2>&1
// FileCheck %s < $outfile
// if [ -z ${LAKEROAD_PRIVATE_DIR+x} ]; then \
// echo "Warning: LAKEROAD_PRIVATE_DIR is not set. Skipping simulation."; \
// exit 0; \
// else \
// python $LAKEROAD_DIR/bin/simulate_with_verilator.py \
// --use_random_intermediate_inputs \
// --seed=23 \
// --max_num_tests=10000 \
// --verilog_filepath $outfile \
// --verilog_filepath %s \
// --initiation_interval 0 \
// --output_signal_name out \
// --input_signal a:13 \
// --input_signal b:13 \
// --input_signal c:13 \
// --verilator_include_dir "$LAKEROAD_PRIVATE_DIR/DSP48E2/" \
// --verilator_extra_arg='-DXIL_XECLIB' \
// --verilator_extra_arg='-Wno-UNOPTFLAT' \
// --verilator_extra_arg='-Wno-LATCH' \
// --verilator_extra_arg='-Wno-WIDTH' \
// --verilator_extra_arg='-Wno-STMTDLY' \
// --verilator_extra_arg='-Wno-CASEX' \
// --verilator_extra_arg='-Wno-TIMESCALEMOD' \
// --verilator_extra_arg='-Wno-PINMISSING'; \
// fi
// RUN: > $outfile
// RUN: FileCheck %s < $outfile

(* use_dsp = "yes" *) module top(
input [12:0] a,
Expand All @@ -53,4 +26,5 @@
assign out = (a * b) + c;
endmodule

// CHECK: Synthesis Timeout
// CHECK: module top(a, b, c, out);

0 comments on commit eb753b1

Please sign in to comment.