U
uche
Guest
Hi all,
I have a vhdl code that I want to call from a verilog code. How can I
do this?
Thanks,
Uchenna
I have a vhdl code that I want to call from a verilog code. How can I
do this?
Thanks,
Uchenna
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Mixed synthesis is easy for FPGAs.I have a vhdl code that I want to call from a verilog code. How can I
do this?
Hi, ucheHi all,
I have a vhdl code that I want to call from a verilog code. How can I
do this?
Thanks,
Uchenna
It is absolutely not necessary to create a wrapper like that.On May 1, 3:22 am, uche <uraniumore...@hotmail.com> wrote:
Hi all,
I have a vhdl code that I want to call from a verilog code. How can I
do this?
Thanks,
Uchenna
Hi, uche
Frist, you should create a new verilog module named the same name
of your VHDL module name. And in this verilog module, call the VHDL
module only. Note that all the ports of the verilog module must be
same as the VHDL module's port you called.
Then you can use the VHDL module by calling the verilog module in
your design.
Just be careful about port names. In Verilog they are case-sensitiveOn May 1, 6:12 am, Homuncilus <Sha.Cr...@gmail.com> wrote:
On May 1, 3:22 am, uche <uraniumore...@hotmail.com> wrote:
Hi all,
I have a vhdl code that I want to call from a verilog code. How can I
do this?
Thanks,
Uchenna
Hi, uche
Frist, you should create a new verilog module named the same name
of your VHDL module name. And in this verilog module, call the VHDL
module only. Note that all the ports of the verilog module must be
same as the VHDL module's port you called.
Then you can use the VHDL module by calling the verilog module in
your design.
It is absolutely not necessary to create a wrapper like that.
If you want to instantiate a VHDL entity as a Verilog module, you
"just do it", providing your tool supports mixed language.
For example, this VHDL entity:
entity my_dff is
port (
C : in std_ulogic;
R : in std_ulogic;
D : in std_ulogic;
Q : out std_ulogic);
end my_dff;
Can be instantiated in Verilog like this:
my_dff flip_flop (
.c(clock),
.r(reset),
.d(in_net),
.q(out_net)
);
Creating a module wrapper adds an unnecessary layer to hierarchy,
making debugging just that much harder.
G.