PyHDI / Pyverilog

Python-based Hardware Design Processing Toolkit for Verilog HDL
Apache License 2.0
640 stars 180 forks source link

fix: parsing of ansi style localparam declarations #130

Open mclark-iontra opened 5 months ago

mclark-iontra commented 5 months ago

Test results

platform darwin -- Python 3.12.3, pytest-6.2.5, py-1.11.0, pluggy-1.5.0 -- .../Pyverilog/.venv/bin/python3
cachedir: .pytest_cache
rootdir: .../Pyverilog, configfile: pytest.ini
plugins: pythonpath-0.7.4
collected 28 items                                                                                                                                                                           

tests/ast_code_generator_test/test_ast_always.py::test PASSED                                                                                                                          [  3%]
tests/ast_code_generator_test/test_ast_assign.py::test PASSED                                                                                                                          [  7%]
tests/ast_code_generator_test/test_ast_embeddedcode.py::test PASSED                                                                                                                    [ 10%]
tests/dataflow_test/test_dat_blocking.py::test PASSED                                                                                                                                  [ 14%]
tests/dataflow_test/test_dat_case.py::test PASSED                                                                                                                                      [ 17%]
tests/dataflow_test/test_dat_case_in_func.py::test PASSED                                                                                                                              [ 21%]
tests/dataflow_test/test_dat_casex.py::test PASSED                                                                                                                                     [ 25%]
tests/dataflow_test/test_dat_decimal.py::test PASSED                                                                                                                                   [ 28%]
tests/dataflow_test/test_dat_decimal_signed.py::test PASSED                                                                                                                            [ 32%]
tests/dataflow_test/test_dat_decimal_width.py::test PASSED                                                                                                                             [ 35%]
tests/dataflow_test/test_dat_function.py::test PASSED                                                                                                                                  [ 39%]
tests/dataflow_test/test_dat_generate.py::test PASSED                                                                                                                                  [ 42%]
tests/dataflow_test/test_dat_generate_instance.py::test PASSED                                                                                                                         [ 46%]
tests/dataflow_test/test_dat_led.py::test PASSED                                                                                                                                       [ 50%]
tests/dataflow_test/test_dat_partial.py::test PASSED                                                                                                                                   [ 53%]
tests/dataflow_test/test_dat_partselect_assign.py::test PASSED                                                                                                                         [ 57%]
tests/dataflow_test/test_dat_primitive.py::test PASSED                                                                                                                                 [ 60%]
tests/dataflow_test/test_dat_ptr_clock_reset.py::test PASSED                                                                                                                           [ 64%]
tests/dataflow_test/test_dat_reset.py::test PASSED                                                                                                                                     [ 67%]
tests/dataflow_test/test_dat_signed_task.py::test PASSED                                                                                                                               [ 71%]
tests/dataflow_test/test_dat_supply.py::test PASSED                                                                                                                                    [ 75%]
tests/parser_test/test_par_ansi_localparam.py::test PASSED                                                                                                                             [ 78%]
tests/parser_test/test_par_delay.py::test PASSED                                                                                                                                       [ 82%]
tests/parser_test/test_par_escape.py::test PASSED                                                                                                                                      [ 85%]
tests/parser_test/test_par_instance_array.py::test PASSED                                                                                                                              [ 89%]
tests/parser_test/test_par_instance_empty_params.py::test PASSED                                                                                                                       [ 92%]
tests/parser_test/test_par_led_main.py::test PASSED                                                                                                                                    [ 96%]
tests/preprocessor_test/test_pre_led_main.py::test PASSED                                                                                                                              [100%]

==================================================================================== 28 passed in 12.29s =====================================================================================