Skip to content

--preserve-case causes failure to build with components #1195

@ktbarrett

Description

@ktbarrett

From dec_viterbi in cocotb's regression (test_vhdl_access runs it).

Component declaration:

-- pkg_components.vhd
-- ...
	component acs is
		generic(
			initialize_value : in signed(BW_MAX_PROBABILITY - 1 downto 0)
		);
-- ...

Entity declaration:

-- acs.vhd
-- ...
entity acs is
	generic(
		-- Reset value
		INITIALIZE_VALUE : in signed(BW_MAX_PROBABILITY - 1 downto 0)
	);
-- ...

Component instantiation:

-- dec_viterbi.vhd
-- ...
		inst_acs : acs
		generic map(
			initialize_value => INITIALIZE_TRELLIS(i)
		)
-- ...

Error message:

** Error: (init): generic INITIALIZE_VALUE in entity DEC_VITERBI.acs without a default value has no corresponding generic in component acs
     > /home/ktbarrett/ws/cocotb/tests/test_cases/test_vhdl_access/../../../tests/designs/viterbi_decoder_axi4s/src/dec_viterbi.vhd:204
     |
 204 |                 inst_acs : acs
     |                 ^
     |
     = Note: declaration of generic INITIALIZE_VALUE in entity
         > /home/ktbarrett/ws/cocotb/tests/test_cases/test_vhdl_access/../../../tests/designs/viterbi_decoder_axi4s/src/acs.vhd:31

Changing the component declaration's casing to match the entity fixes the error. But AFAIK this shouldn't be an issue. The --preserve-case is only for VHPI simulation object names.

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