Skip to content

trouble parsing file containing mutliple packages #13

@sylvainhuard

Description

@sylvainhuard

Sending a package file containing multiple package definitions to slvcodec doesn't work. It says that there are more than one package with the same name. A package file often starts with:

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

When putting more than one package in a file, the "use" clause are going to be repeated at the beginning of each package. slvcodec will see it as multiple packages with the same name. I work around that by using one file per package. The inconvenient is when using open source IPs where I have no control over how they do it. When I fetch from origin, I manually split the package in multiple files and add the new files in the build.

I found that passing this file to slvcodec:

https://github.com/stnolting/neorv32/blob/main/rtl/core/neorv32_package.vhd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions