sv2v/test/relong
Zachary Snow 788a71d1be initial lexer tests; general test harness 2019-04-02 23:11:16 -04:00
..
README.md initial lexer tests; general test harness 2019-04-02 23:11:16 -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 initial lexer tests; general test harness 2019-04-02 23:11:16 -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
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.

array.v previously had a custom implementation of $clog2, which was removed.

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.