sv2v/test/relong
Zachary Snow e4efb4803b fix broken for inits parsing; beefed up relong test script to catch such mistakes 2019-03-27 03:33:28 -04:00
..
README.md added hdl-examples tests 2019-03-26 21:32:02 -04:00
alu.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
alu.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
alu_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
array.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
array.v use builtin $clog2 in test/relong/array.v 2019-03-27 02:32:11 -04:00
array_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
case.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
case.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
case_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
double_clock.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
double_clock.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
double_clock_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
enum.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
enum.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
enum_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
fsm.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
fsm.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
fsm_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
functions.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
functions.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
functions_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
inline_concat.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
inline_concat.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
inline_concat_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
port_connections.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
port_connections.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
port_connections_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
run.sh fix broken for inits parsing; beefed up relong test script to catch such mistakes 2019-03-27 03:33:28 -04:00
simple_interface.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
simple_interface.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
simple_interface_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
split_ports.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
split_ports.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
split_ports_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
struct.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
struct.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
struct_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
tb_dumper.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
typedef.sv added hdl-examples tests 2019-03-26 21:32:02 -04:00
typedef.v added hdl-examples tests 2019-03-26 21:32:02 -04:00
typedef_tb.v added hdl-examples tests 2019-03-26 21:32:02 -04:00

README.md

relong Tests

These tests are borrowed from Reid Long's HDL Examples repository. That repository was intended to provide examples for how the conversions in this project could be done.

The inline_concat files were modified to remove a stray trailing semicolon.

Each test case (say, "foo") is comprised of the following files:

  1. foo.sv: original SystemVerilog
  2. foo.v: hand-converted Verilog
  3. foo_tb.v: basic testbench exercising the given modules

The SystemVerilog source file is converted to Verilog using sv2v, and then both the converted file and the reference Verilog are simulated using Icarus Verilog. This produces VCD files for each which are expected to match exactly, except for the timestamp.