mirror of https://github.com/zachjs/sv2v.git
|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| alu.sv | ||
| alu.v | ||
| alu_tb.v | ||
| array.sv | ||
| array.v | ||
| array_tb.v | ||
| cache_request.sv | ||
| cache_request.v | ||
| cache_request_tb.v | ||
| case.sv | ||
| case.v | ||
| case_tb.v | ||
| complex_interface.sv | ||
| complex_interface.v | ||
| complex_interface_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 | ||
| gen_struct.sv | ||
| gen_struct.v | ||
| gen_struct_tb.v | ||
| inline_concat.sv | ||
| inline_concat.v | ||
| inline_concat_tb.v | ||
| module_struct.sv | ||
| module_struct.v | ||
| module_struct_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 | ||
| split_struct.sv | ||
| split_struct.v | ||
| split_struct_tb.v | ||
| struct.sv | ||
| struct.v | ||
| struct_tb.v | ||
| typedef.sv | ||
| typedef.v | ||
| typedef_tb.v | ||
README.md
Reid Long's tests
These tests are borrowed from Reid Long's HDL Examples repository. Early in
sv2v's development, Reid produced these examples to demonstrate how sv2v might
perform its conversions. sv2v does not necessarily convert code in the same way,
but its output should behave equivalently. Notably, sv2v does not create
generate blocks when flattening vectors with multiple packed dimensions, uses
localparams rather than macros to convert enums, and converts struct
pattern literals as concatenations, rather than multiple statements.
Modifications
The following differences exist between the tests in this folder and their corresponding versions in the source repository.
- The
inline_concatfiles were modified to remove a stray trailing semicolon. Though some tools allow for stray semicolons,iverilogdoes not. array.vpreviously had a custom implementation of$clog2, which was removed.cache_request.svwas modified to include a plain decimal literal to provide coverage beyond the unbased-unsized literals.- The
cache_request2test is omitted. It was only an example for debugging a VCS-specific issue encountered withcache_request.