Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrun compilation error #17

Open
agrobman opened this issue Dec 18, 2020 · 3 comments
Open

xrun compilation error #17

agrobman opened this issue Dec 18, 2020 · 3 comments
Assignees

Comments

@agrobman
Copy link

when it try to compile standalone RTL as :

xrun submodules/ahb3lite_pkg/rtl/verilog/ahb3lite_pkg.sv rtl/verilog/*.sv

I'm getting following error:

  function slave_mask_t invert_slave_mask;
                                        |
xmvlog: *E,CFBADT (../rtl/verilog/ahb3lite_interconnect.sv,197|40): Declaration in constant function uses unavailable datatype.
  function slave_mask_t invert_slave_mask;
                                        |
xmvlog: *E,CFBADT (../rtl/verilog/ahb3lite_interconnect.sv,197|40): Declaration in constant function uses unavailable datatype.
  parameter bit [SLAVES-1:0] ERROR_ON_SLAVE_MASK[MASTERS] = invert_slave_mask(),
                                                                            |
xmvlog: *N,CFCALL (../rtl/verilog/ahb3lite_interconnect.sv,136|76): Function invert_slave_mask treated as a constant function because of this call.
	module worklib.ahb3lite_interconnect:sv

What do I miss?

I use xcellium version 20.03-s003

@rherveille rherveille self-assigned this Dec 28, 2020
@rherveille
Copy link
Collaborator

The code has been compiled using the Intel, Xilinx, and Lattice design flows.
We run simulations with the Aldec and Mentor tools. Unfortunately I do not have access to the Cadence tools.
It seems like the tool doesn't like/find the type definition. You can try moving the type definition before its use. Or place the type definition in a separate package.

Richard

@pantikov
Copy link

Hello!

Fixed the issue with the patch below.

ahb3lite_interconnect.txt

@rherveille
Copy link
Collaborator

That fix mixes ANSI-style and old-style (K&R) parameter declarations. That causes problems in other tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants