Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Verilog-Perl CPAN distribution.

Report information
The Basics
Id: 34948
Status: resolved
Priority: 0/
Queue: Verilog-Perl

People
Owner: Nobody in particular
Requestors: admin [...] matveyenko.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Ymail-Osg: cUEr3HgVM1nKKkox_RGnl7DuU.SEYEN4vZF.gmeLa5yXUamqBnUip8px5zEEYSSfXeFZQ7pkUTZPq_06_oWgDFIpiPdvKyQR5L4XlsIRzi.I6qoNfuq1k4uSC8muZA--
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE
X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.162
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="0-1996788924-1208102109=:25579"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 85BDE4D8076 for <bug-Verilog-Perl [...] rt.cpan.org>; Sun, 13 Apr 2008 11:55:18 -0400 (EDT)
Received: (qmail 14446 invoked from network); 13 Apr 2008 15:55:17 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Apr 2008 15:55:17 -0000
Received: from web81402.mail.mud.yahoo.com (HELO web81402.mail.mud.yahoo.com) (68.142.199.130) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with SMTP; Sun, 13 Apr 2008 08:55:13 -0700
Received: (qmail 26305 invoked by uid 60001); 13 Apr 2008 15:55:09 -0000
Received: from [192.55.52.4] by web81402.mail.mud.yahoo.com via HTTP; Sun, 13 Apr 2008 08:55:09 PDT
Delivered-To: cpan-bug+Verilog-Perl [...] diesel.bestpractical.com
Subject: nested macros are not expanded correctly if a macro has arguments ...
Return-Path: <admin [...] matveyenko.com>
X-Original-To: bug-Verilog-Perl [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sun, 13 Apr 2008 08:55:09 -0700 (PDT)
X-Spam-Level: *
Message-Id: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
To: bug-Verilog-Perl [...] rt.cpan.org
From: Vladimir Matveyenko <admin [...] matveyenko.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Content-Length: 1716
Download (untitled) / with headers
text/plain 1.6k
distribution: Verilog-Perl-3.024.tar.gz Perl version: v5.8.5 built for x86_64-linux OS: Linux * 2.6.5-7.283-smp #1 SMP Wed Nov 29 16:55:53 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux I'm reporting an issue with macro expansion only on linux platform (see above), while works fine on Gygwin OS (CYGWIN_NT-5.1 ecwm0clloan2 1.5.25(0.156/4/2) 2008-03-05 19:27 i686 Cygwin) It seems that on linux, if a macro contains an argument and it is nested, it gets all confused. Thanks. Here is the verilog code to duplicate the issue: test1.vs // ----------------------------------------------------------// `define ADD1A(a) \ `ifdef SIM \ always @(*) a = a + 1; \ `else \ p22add add_1 (a) \ `endif `define ADD1B \ `ifdef SIM \ always @(*) a = a + 1; \ `else \ p22add add_1 (a) \ `endif module test1 (input logic a); /* this macro will not expand correctly */ `ADD1A(a) /* this macro will expand correctly */ `ADD1B endmodule // -----------------------------------------------------------// // -----------------------------------------------------------// Here is the result of expansion on Linux (incorrect) // -----------------------------------------------------------// Show quoted text
168>vppp +define+SIM --simple test1.vs
module test1 (input logic a); ifdef` SIM always @(*) a = a + 1; else` p22add add_1 (a) endif` always @(*) a = a + 1; endmodule // -----------------------------------------------------------// Here is the result of expansion on Cygwin OS: // -----------------------------------------------------------// 10 $ vppp +define+SIM --simple test1.vs module test1 (input logic a); always @(*) a = a + 1; always @(*) a = a + 1; endmodule
content-type: text/html; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Content-Length: 2938
MIME-Version: 1.0
In-Reply-To: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
Message-Id: <rt-3.6.HEAD-18317-1208178014-149.34948-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 302
Download (untitled) / with headers
text/plain 302b
I think this was fixed in 3.024. It works for me on linux. So, I suspect you have 3.023 on your linux platform and 3.024 on Cygwin. Can you download the 3.024 kit, make, and do ./vppp test1.vs to run it locally and see if it works? If so you have a older version somewhere that's getting picked up.
X-Ymail-Osg: ME2Xx3MVM1l2xUaZ.N5.HcDCZjT8Lq1e4JXunt18mEpEmMHlkBOaQTOZZnPeufGAx4mAc50zdF..AU5ga0RJJEs6Jw62X0UAiWz8S4Z8HYLb_Tu5DaVEfYo5usKWDA--
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_POLICY_TESTING,DK_SIGNED,DK_VERIFIED,HTML_MESSAGE
X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.162
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="0-1621960844-1208191235=:81008"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id B38C84D8013 for <bug-Verilog-Perl [...] rt.cpan.org>; Mon, 14 Apr 2008 12:41:11 -0400 (EDT)
Received: (qmail 17343 invoked from network); 14 Apr 2008 16:41:10 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 14 Apr 2008 16:41:10 -0000
Received: from web81405.mail.mud.yahoo.com (HELO web81405.mail.mud.yahoo.com) (68.142.199.133) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with SMTP; Mon, 14 Apr 2008 09:41:05 -0700
Received: (qmail 89048 invoked by uid 60001); 14 Apr 2008 16:40:36 -0000
Received: from [134.134.136.1] by web81405.mail.mud.yahoo.com via HTTP; Mon, 14 Apr 2008 09:40:35 PDT
Delivered-To: cpan-bug+Verilog-Perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #34948] nested macros are not expanded correctly if a macro has arguments ...
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=b+Cp5aG7xIEa4UKYk0k/QFJ88Ecgx0bR2JYL2mq5Kqt7Wo7NO2/R5XGpneZqnovP8jYF1YhcsXA3aKsVM5aA78m44jJd5pMTiXGapGRpmwJ6dGmJNYCiujDTF4H7sga185MyR9b0CFTgXFbLmv9gSAqLA2MMTR9YI+lS1nQI6/w=;
Return-Path: <vmatveye [...] yahoo.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Verilog-Perl [...] rt.cpan.org
Date: Mon, 14 Apr 2008 09:40:35 -0700 (PDT)
X-Spam-Level: *
Message-Id: <979494.81008.qm [...] web81405.mail.mud.yahoo.com>
To: bug-Verilog-Perl [...] rt.cpan.org
From: Vladimir Matveyenko <vmatveye [...] yahoo.com>
RT-Message-ID: <rt-3.6.HEAD-18317-1208191282-470.34948-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"; name="debug.out.txt"
content-disposition: attachment; filename="debug.out.txt"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: ascii
X-RT-Original-Encoding: utf-8
Content-Length: 7546
Download debug.out.txt
text/plain 7.3k

Message body is not shown because sender requested not to inline it.

Content-Type: multipart/alternative; boundary="0-1564594979-1208191235=:81008"
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
X-RT-Original-Encoding: utf-8
Content-Length: 1384
Download (untitled) / with headers
text/plain 1.3k
Hello, According to perldoc output the version of Verilog-Perl is 3.024 I had it installed into a local project area since global perl modules are not allowed. I also ran the same command with -debug switch and attached it just in case. Thanks again for your help. -Vladimir Show quoted text
168> perldoc $PROJ_UTILS/include/perl/lib/5.8.5/x86_64-linux/perllocal.pod
PERLLOCAL(1) User Contributed Perl Documentation PERLLOCAL(1) Thu Apr 10 16:12:03 2008: "Module" Verilog::Language ? "installed into: /p/acd/proj/gb2/utils/include/perl/lib/site_perl/5.8.5" ? "LINKTYPE: dynamic" ? "VERSION: 3.024" ? "EXE_FILES: vrename vpm vppp vhier vsplitmodule" perl v5.8.5 2008?04?10 PERLLOCAL(1) Show quoted text
----- Original Message ---- From: Wilson Snyder via RT <bug-Verilog-Perl@rt.cpan.org> To: admin@matveyenko.com Sent: Monday, April 14, 2008 6:00:16 AM Subject: [rt.cpan.org #34948] nested macros are not expanded correctly if a macro has arguments ... <URL: http://rt.cpan.org/Ticket/Display.html?id=34948 > I think this was fixed in 3.024. It works for me on linux. So, I suspect you have 3.023 on your linux platform and 3.024 on Cygwin. Can you download the 3.024 kit, make, and do ./vppp test1.vs to run it locally and see if it works? If so you have a older version somewhere that's getting picked up.
Content-Type: text/html; charset="utf-8"
X-RT-Original-Encoding: us-ascii
X-RT-Original-Encoding: utf-8
Content-Length: 4793
MIME-Version: 1.0
In-Reply-To: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
Message-Id: <rt-3.6.HEAD-18297-1208193678-413.34948-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 175
Download (untitled) / with headers
text/plain 175b
You're definatly running a old version, as these messages changed Show quoted text
>1: RAW 0 0: DEFINE : `define
to something like this in 3.024 1: RAW on s0 dr0: DEFINE : `define
X-Ymail-Osg: GKWY1JQVM1ncrvtD.9ApprG77h3_aaPX87T8QPs8Of9eE.zkX3ce_eV6cVSAVXkDSeRk8wgMl4VI6Aoz7PvYek8VSo8X5Jg-
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE
X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.162
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="0-1793232301-1208281112=:56560"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 1919D4D806E for <bug-Verilog-Perl [...] rt.cpan.org>; Tue, 15 Apr 2008 13:38:41 -0400 (EDT)
Received: (qmail 1282 invoked from network); 15 Apr 2008 17:38:41 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 15 Apr 2008 17:38:41 -0000
Received: from web81405.mail.mud.yahoo.com (HELO web81405.mail.mud.yahoo.com) (68.142.199.133) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with SMTP; Tue, 15 Apr 2008 10:38:37 -0700
Received: (qmail 57526 invoked by uid 60001); 15 Apr 2008 17:38:33 -0000
Received: from [143.182.124.2] by web81405.mail.mud.yahoo.com via HTTP; Tue, 15 Apr 2008 10:38:32 PDT
Delivered-To: cpan-bug+Verilog-Perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #34948] nested macros are not expanded correctly if a macro has arguments ...
Return-Path: <admin [...] matveyenko.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Verilog-Perl [...] rt.cpan.org
Date: Tue, 15 Apr 2008 10:38:32 -0700 (PDT)
X-Spam-Level: *
Message-Id: <961012.56560.qm [...] web81405.mail.mud.yahoo.com>
To: bug-Verilog-Perl [...] rt.cpan.org
From: Vladimir Matveyenko <admin [...] matveyenko.com>
RT-Message-ID: <rt-3.6.HEAD-18297-1208281127-867.34948-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
X-RT-Original-Encoding: utf-8
Content-Length: 731
Download (untitled) / with headers
text/plain 731b
Hi again, I have tried 2 times to install the 3.024 version on the lunix and used the same distribution tar file as with Cygwin. But the issue persists. Is there anything else I can try to determine the reason for my lunix problems. Thanks Show quoted text
----- Original Message ---- From: Wilson Snyder via RT <bug-Verilog-Perl@rt.cpan.org> To: admin@matveyenko.com Sent: Monday, April 14, 2008 10:21:21 AM Subject: [rt.cpan.org #34948] nested macros are not expanded correctly if a macro has arguments ... <URL: http://rt.cpan.org/Ticket/Display.html?id=34948 > You're definatly running a old version, as these messages changed
>1: RAW 0 0: DEFINE : `define
to something like this in 3.024 1: RAW on s0 dr0: DEFINE : `define
Content-Type: text/html; charset="utf-8"
X-RT-Original-Encoding: us-ascii
X-RT-Original-Encoding: utf-8
Content-Length: 2021
MIME-Version: 1.0
In-Reply-To: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <247537.25579.qm [...] web81402.mail.mud.yahoo.com>
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-29719-1234102481-1104.34948-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 99
I think this is an old issue. If it persists please open an issue on http://veripool.org, thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.