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.

X+HDL Verilog2Vhdl error with 'wire'

Status
Not open for further replies.

TurboPC

Advanced Member level 4
Full Member level 1
Joined
Mar 14, 2002
Messages
112
Helped
15
Reputation
30
Reaction score
15
Trophy points
1,298
Activity points
1,155
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!
 

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!
 

you have missed ";" in the end of line...

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

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top