mirror of https://github.com/zachjs/sv2v.git
|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| alu.sv | ||
| alu.v | ||
| alu_tb.v | ||
| array.sv | ||
| array.v | ||
| array_tb.v | ||
| case.sv | ||
| case.v | ||
| case_tb.v | ||
| double_clock.sv | ||
| double_clock.v | ||
| double_clock_tb.v | ||
| enum.sv | ||
| enum.v | ||
| enum_tb.v | ||
| fsm.sv | ||
| fsm.v | ||
| fsm_tb.v | ||
| functions.sv | ||
| functions.v | ||
| functions_tb.v | ||
| inline_concat.sv | ||
| inline_concat.v | ||
| inline_concat_tb.v | ||
| port_connections.sv | ||
| port_connections.v | ||
| port_connections_tb.v | ||
| run.sh | ||
| simple_interface.sv | ||
| simple_interface.v | ||
| simple_interface_tb.v | ||
| split_ports.sv | ||
| split_ports.v | ||
| split_ports_tb.v | ||
| struct.sv | ||
| struct.v | ||
| struct_tb.v | ||
| tb_dumper.v | ||
| typedef.sv | ||
| typedef.v | ||
| typedef_tb.v | ||
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:
foo.sv: original SystemVerilogfoo.v: hand-converted Verilogfoo_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.