Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > switch to verilog module in a vhdl wrapper

Reply
Thread Tools

switch to verilog module in a vhdl wrapper

 
 
elfanch elfanch is offline
Junior Member
Join Date: Nov 2009
Posts: 1
 
      11-18-2009
Hello,

I have a vhdl wrapper which instantiates a component called FGH. For this FGH I have a verilog and a vhdl module. I would like to compare simulation performance of both. I wish I could switch from one to the other model without changing the wrapper (as in fact it's a full library I would like to switch from vhdl to verilog…).

I got a problem with some parameters :

For INIT parameter, with the default modules :

Verilog :
module FGH (O, I0, I1, I2, I3, I4);

parameter INIT = 8'hAA;
...
and

Vhdl :
component FGH
generic (
INIT : bit_vector := X"AA"
);
..

I get a type mismatch for INIT, when instanciating the verilog module.

If I update the vhdl component like this :
component FGH
generic(
INIT : integer := 170
);

I no longer get the mismatch error, but the X"BB" that is used in instanciation is not understood (bit string literal found when non-array std.standard.integer was expected.

FGH_1 : FGH
generic map(
INIT => X"BB"
)


To fix this I have to change the instanciation to : INIT => 187

But I am no longer able to swithc back to the vhdl model without error…

Would someone have an idea of this?

Thank you very much
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration for VHDL entity instantiated under Verilog module AnandA VHDL 0 04-01-2009 12:53 AM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
verilog module instantantiation in VHDL top level praveen.kantharajapura@gmail.com VHDL 1 07-11-2005 07:20 AM
how to design this datapath unit for DSP using VHDL/Verilog? walala VHDL 3 08-30-2003 05:26 PM
where to find DCT/IDCT for JPEG/JPEG2000 VHDL/VERILOG source code? walala VHDL 0 08-01-2003 09:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57