- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Macros not working
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-31-2012 10:05 PM
Hi all,
I am having problems with macros not being recognized. So I made this simple test:
`timescale 1ns / 1ps
`define VLAD 5
module main(
);
reg [7:0] test;
initial
begin
assign test= VLAD + 1;
end
endmodule
When I Synthetize it I get this error:
ERROR:HDLCompilers:28 - "main.v" line 12 'VLAD' has not been declared
Any idea why? What I am doing wrong?
I tried both Verilog-200X and Verilog-93 to no avail. I am using the latest ISE available (14.1?)
Regards,
Vlad.
Solved! Go to Solution.
Re: Macros not working
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-31-2012 11:01 PM
Hi Vlad,
shouldn't it belike this:
assign test= 'VLAD + 1;
^
see the little tick there?
Have a nice synthesis
Eilert
Re: Macros not working
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-31-2012 11:05 PM
Ah!! Yes, thank you very much! That worked! I can now get back to my design.
Regards,
Vlad.











