utils/vlog: Remove now redundant smoketests Simple tests of the XML from Verilog scripts are now covered by within testarch instead. Signed-off-by: David Shah <davey1576@gmail.com>
diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index 6722cd9..0000000 --- a/tests/.gitignore +++ /dev/null
@@ -1 +0,0 @@ -*.xml
diff --git a/tests/adder/adder.sim.v b/tests/adder/adder.sim.v deleted file mode 100644 index 9b834eb..0000000 --- a/tests/adder/adder.sim.v +++ /dev/null
@@ -1,17 +0,0 @@ -(* blackbox *) -module adder( - input a, - input b, - input ci, - - (* DELAY_CONST_a = "20e-12" *) - (* DELAY_CONST_b = "20e-12" *) - (* DELAY_CONST_ci = "10e-12" *) - output y, - - (* DELAY_CONST_a = "10e-12" *) - (* DELAY_CONST_b = "10e-12" *) - (* DELAY_CONST_ci = "7e-12" *) - output co); -assign {co, y} = a + b + ci; -endmodule
diff --git a/tests/dff/dff.sim.v b/tests/dff/dff.sim.v deleted file mode 100644 index e2ae093..0000000 --- a/tests/dff/dff.sim.v +++ /dev/null
@@ -1,16 +0,0 @@ -(* blackbox *) (* CLASS="flipflop" *) -module dff(clk, d, q); - -(* PORT_CLASS = "clock" *) -input wire clk; - -(* PORT_CLASS = "D" *) (* SETUP = "clk 200e-12" *) (* HOLD = "clk 50e-12" *) -input wire d; - -(* PORT_CLASS = "Q" *) (* CLK_TO_Q = "clk 400e-12" *) -output wire q; - -always @(posedge clk) - q <= d; - -endmodule
diff --git a/tests/lut2/lut2.sim.v b/tests/lut2/lut2.sim.v deleted file mode 100644 index e7f9760..0000000 --- a/tests/lut2/lut2.sim.v +++ /dev/null
@@ -1,9 +0,0 @@ -(* blackbox *) -module lut2 ( - input [1:0] in, - - (* DELAY_MATRIX_in = "10e-12; 10e-12" *) - output y); -parameter [3:0] content = 4'b1000; -assign y = content[in]; -endmodule
diff --git a/tests/run.sh b/tests/run.sh deleted file mode 100755 index a13c8a5..0000000 --- a/tests/run.sh +++ /dev/null
@@ -1,15 +0,0 @@ -#!/bin/bash -INPUT_DIRS="adder dff lut2 ." -THIS_TOP="tests" - -for dir in $INPUT_DIRS; do - if [ "$dir" = "." ]; then - TOP=$THIS_TOP - else - TOP=$dir - fi - ../vlog_to_model.py --top $TOP -o ${dir}/${TOP}.model.xml ${dir}/${TOP}.sim.v - ../vlog_to_pbtype.py --top $TOP -o ${dir}/${TOP}.pb_type.xml ${dir}/${TOP}.sim.v -done - -xmllint --xinclude --nsclean --noblanks --format ./tests.pb_type.xml > ./merged.xml
diff --git a/tests/tests.sim.v b/tests/tests.sim.v deleted file mode 100644 index 77a073c..0000000 --- a/tests/tests.sim.v +++ /dev/null
@@ -1,20 +0,0 @@ -`include "adder/adder.sim.v" -`include "dff/dff.sim.v" -`include "lut2/lut2.sim.v" - - -(* MODES="ADD, LUT" *) -module tests(input clk, a, b, ci, output q, co); - parameter MODE = "ADD"; - wire d; - generate - if(MODE == "ADD") begin - adder adder_i(.a(a), .b(b), .ci(ci), .y(d), .co(co)); - end else if(MODE == "LUT") begin - assign co = 0; - lut2 lut2_i(.in({b, a}), .y(d)); - end - endgenerate - dff dff_i(.clk(clk), .d(d), .q(q)); - -endmodule