Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog Module instantiation in VHDL

Status
Not open for further replies.

sameem_shabbir

Advanced Member level 4
Joined
Jan 5, 2008
Messages
104
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
Pakistan
Activity points
1,946
verilog instantiation

Hi all
I am a verilog user , I am facing problems in instantaiting verilog module into VHDL
Below is the instantiation which i did

CPU: Calc PORT MAP(
eof => eof,
blank => blank,
clk1x => clk,
r => r,
rmd => rmd,
mlpl => mlpl,
sqr => sqr,
quo => quo
);

But the compiler is giving syntax error
Undefined symbol 'Calc'.
Where as Calc.v is the verilog file which i am trying to instantiate

can any body help me how to correct this error
 

instantiation in verilog

i think you forgot component declaration for calc
 

verilog module instantiation

COMPONENT Calc
PORT(
eof : IN std_logic;
blank : IN std_logic;
clk1x : IN std_logic;
r : IN std_logic_vector(2 downto 0);
rmd : OUT std_logic_vector(7 downto 0);
mlpl : OUT std_logic_vector(31 downto 0);
sqr : OUT std_logic_vector(31 downto 0);
quo : OUT std_logic_vector(31 downto 0)
);
END COMPONENT;

CPU: Calc PORT MAP(
eof => eof,
blank => blank,
clk1x => clk,
r => r,
rmd => rmd,
mlpl => mlpl,
sqr => sqr,
quo => quo
);

But if i go for components (as done above)
I get this much of errors:cry:



ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 489. parse error, unexpected COMPONENT
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 492. parse error, unexpected IN
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 493. parse error, unexpected IN
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 494. parse error, unexpected IN
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 495. parse error, unexpected TOKOUT
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 496. parse error, unexpected TOKOUT
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 497. parse error, unexpected TOKOUT
ERROR:HDLParsers:164 - "F:/XESS/Programms/trial/Video Modification For corelation/video.vhd" Line 498. parse error, unexpected TOKOUT
 

instantiate verilog module in vhdl

have you defined the entity and architecture correctly & after component and signal declaration you have to start with begin for logic description
 

instantiate verilog in vhdl

Thnx for ur help
But i know very less about Vhdl

I am attaching both files (Problem >xs3_video> calc.v & video modified.vhd)
can you plz instantiate it for me :cry:
Plz
 

module instantiation in verilog

i Have seen the code mistake is that component declaration should be above begin just cut the component part and paste it above begin
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top