Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

X+HDL Verilog2Vhdl error with 'wire'

Status
Not open for further replies.

TurboPC

Advanced Member level 4
Joined
Mar 14, 2002
Messages
112
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,298
Activity points
1,154
I am using X+HDL to convert a verilog module to vhdl. I get a syntax error on the keyword 'wire'. What should I do? Is there another syntax keyword I should use? Note: I am not very familiar with verilog.

Disclaimer: I have seen a mention of this bug on Elektroda before, but I can't find it anymore. Thanks!
 

TurboPC

Advanced Member level 4
Joined
Mar 14, 2002
Messages
112
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,298
Activity points
1,154
Oups! Bug is coming from undef statement

The error is coming from the line before the wire statement:

'undef toto
`ifdef toto
reg [5 : 0] a,b,c,d;
`else
wire [5 : 0] a,b,c,d;
`endif

Just commenting line <'undef toto > solves the problem. However, xhdl repost an error at the end of the file. I have to coment properly all the 'ifdef', 'else' and 'endif statements to correct the bug.

Any other workaround?

Regards!
 

ngisst

Newbie level 2
Joined
Apr 26, 2003
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Formosa
Activity points
12
you have missed ";" in the end of line...

wire [5 : 0] a,b,c,d ;
 

TurboPC

Advanced Member level 4
Joined
Mar 14, 2002
Messages
112
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,298
Activity points
1,154
Thanks for the ';' comment, but it 's a typo when I copied the example to elektroda...

My question still stands...
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top