• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. VHDL & SystemVerilog Connection

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 65
  • Views 1016
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

VHDL & SystemVerilog Connection

ssan
ssan over 15 years ago

Hi all,
 
I have in the design a signal which is defined:
 
SIGNAL win_energy_array   :  std_energy_array;
 
in the package defined:
 
CONSTANT NUM_OF_FIRS                :INTEGER                         := 5;
CONSTANT ENRG_MAX_BIT               :INTEGER                         := 10 ;
TYPE std_energy_array IS ARRAY (NUM_OF_FIRS DOWNTO 1) OF STD_LOGIC_VECTOR(ENRG_MAX_BIT DOWNTO 0);
 
I have imported the package and defined a program,
I tried to use the type std_energy_array  as an input signal type and I got the error: unknown identifier,
so I tried to define:
 
import pre_proc_lib::*;
program fb_fullchip_tb
(
     input  logic[5:1] win_energy_array [10:0];  
);
 
and tried to bind them:
program bind_prog;
 bind PreProc fb_fullchip_tb fb_tb
 (
      .win_energy_array(win_energy_array)
 )
 
I also tried the following:
input  logic[5:1] win_energy_array [10];
input  logic[5:1] [10:0]win_energy_array ;
 
But I always get the error:
# ** Error: (vsim-3055) Type of connected VHDL signal is incompatible with Verilog port 'win_energy_array'.
 
The other signals in the program are connected all right.
 
How should I define my this signal?
 
Thanks

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information