Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - xemacs vhdl mode goto error

 
Thread Tools Search this Thread
Old 08-20-2006, 03:48 PM   #1
Default xemacs vhdl mode goto error


hello, I need some help with xemacs
I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
when i compile a vhdl file, i get error messages, but how can i move
to the error in the source file.
when i try right-click->compile->next error, nothing happens.
also the key combination "C-x `", how do I enter this combination on
a german keyboard.
following are the compilation messages:

cd c:\temp\b3dcr01\test\
vcom -93 -work work C:\temp\b3dcr01\test\src\b3dcr01.vhd
Model Technology ModelSim ALTERA vcom 6.1d Compiler 2006.01 Jan 23 2006
-- Loading package standard
-- Loading package std_logic_1164
-- Loading package numeric_std
-- Compiling entity b3dcr01
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

Compilation exited abnormally with code 2 at Sun Aug 20 16:43:53
thanks


Thomas Fischer
  Reply With Quote
Old 08-20-2006, 07:31 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer wrote:
> I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
> when i compile a vhdl file, i get error messages, but how can i move
> to the error in the source file.


The command is "next-error"
I have it bound to a function key.
But whenever Modelsim changes error formats, I have to
fix the Regexp to match in vhdl,options,compiler.
Note that you can read the vcom messages and line numbers
in the compilation buffer.

> when i try right-click->compile->next error, nothing happens.
> also the key combination "C-x `", how do I enter this combination on
> a german keyboard.


don't know. check
see:http://groups.google.com/group/comp.emacs.xemacs

> following are the compilation messages:


It looks like you are generating makefiles and running
make and vcom ok. Thats 90% of the battle. Good luck.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 08-20-2006, 10:42 PM   #3
Thomas Fischer
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Mike Treseler schrieb:
> Thomas Fischer wrote:
>> I use windows binary of xemacs 21.4.19 with vhdl-mode 3.33.13.
>> when i compile a vhdl file, i get error messages, but how can i move
>> to the error in the source file.

>
> The command is "next-error"
> I have it bound to a function key.
> But whenever Modelsim changes error formats, I have to
> fix the Regexp to match in vhdl,options,compiler.
> Note that you can read the vcom messages and line numbers
> in the compilation buffer.
>
>> when i try right-click->compile->next error, nothing happens.
>> also the key combination "C-x `", how do I enter this combination on
>> a german keyboard.

>
> don't know. check
> see:http://groups.google.com/group/comp.emacs.xemacs
>
>> following are the compilation messages:

>
> It looks like you are generating makefiles and running
> make and vcom ok. Thats 90% of the battle. Good luck.
>
> -- Mike Treseler


thanks
"battle" is the right word...

i'm not an expert in regex, perhaps someone can help me to setup
the regex correctly.

1:
do i have to enable menu "Options->Compiler->"Use Local Error Regex" ?

2:
I found the regex in buffer Options->Compiler->Compiler Setup:

\(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]* *[[0-9]+])?
\(.+\)(\([0-9]+\)):

I do not know the error message from former modelsim vcom,
therefore it's difficult for me to detect what's wrong.
I've downloaded regex coach but I still have problems to determine the
values for
File subexp index: 3
Line subexp idx: 4

thanks


Thomas Fischer
  Reply With Quote
Old 08-20-2006, 11:02 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer wrote:

> perhaps someone can help me to setup
> the regex correctly.


That's off-topic here.
Try an emacs group or google for a tutorial.

> I do not know the error message from former modelsim vcom,
> therefore it's difficult for me to detect what's wrong.


error messages go to the compilation buffer
or just run vcom from cmd, bash, or the vsim GUI
until you have it solved.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 08-21-2006, 06:30 AM   #5
Mike Treseler
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer wrote:

> I found the regex in buffer Options->Compiler->Compiler Setup:
> \(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]* *[[0-9]+])?\(.+\)(\([0-9]+\)):


Here's mine:
\(\*\*.Error\|Warning\)[^:]*: \(.+\)(\([0-9]+\)):


Mike Treseler
  Reply With Quote
Old 08-21-2006, 10:57 AM   #6
Reto Zimmermann
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer wrote:

> \(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]* *[[0-9]+])?
> \(.+\)(\([0-9]+\)):


There is indeed a bug in the regexp above. It should be:

\(ERROR\|WARNING\|\*\* Error\|\*\* Warning\)[^:]*:\( *[[0-9]+]\)?
\(.+\)(\([0-9]+\)):

(two parenthesis "(" and ")" need to be escaped as "\(" and "\)".)
I've also fixed it in version 3.33.14 at

http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

Reto


Reto Zimmermann
  Reply With Quote
Old 08-21-2006, 02:12 PM   #7
Thomas Fischer
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
thanks for your replies,
unfortunately i did not get it running with your regex,
i think it's a problem with the binary xemacs version for windows.
( i also tried a cygwin version of xemacs, but there is a problem with
the path)

if someone uses this version on windows with vhdl mode successfully , he
may help me,
otherwise i will try another editor.
thanks a lot.


lower is the description of the problem

i downloaded:
http://ftp.xemacs.org/xemacs/binarie...noSetup/XEmacs Setup
21.4.19.exe
i downloaded:
http://www.iis.ee.ethz.ch/~zimmi/ema...de-3.33.14.zip
extracted vhdl-mode-3.33.14.zip
copied and renamed it to C:\Programme\XEmacs\xemacs-packages\lisp\vhdl-mode

when I compile buffer i get the following errors

cd c:\temp\b3dcr01\test\
vcom -93 -work work C:\temp\b3dcr01\test\src\b3dcr01.vhd
Model Technology ModelSim ALTERA vcom 6.1d Compiler 2006.01 Jan 23 2006
-- Loading package standard
-- Loading package std_logic_1164
-- Loading package numeric_std
-- Compiling entity b3dcr01
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

Compilation exited abnormally with code 2 at Mon Aug 21 13:25:39

when I use right click->compile->First Error

File Dialog pops up with
Find This Error inDefault Cd C:\Temp\B3dcr01\Test\ Vcom -93 -Work Work
C:\Temp\B3dcr01\Test\Src\B3dcr01.vhd
Model Technologgy Modelsim Altera Vcom 6.1d.......
when i close this dialog compilation buffer changes to

** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "n".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): (vcom-1136) Unknown
identifier "i".
** Error: C:\temp\b3dcr01\test\src\b3dcr01.vhd(11): near "std_logic":
expecting: ')' ';'

and the first line light's up green when i move with the mouse over
this line
when i press middle button of the mouse, again same file dialog pops up






Thomas Fischer
  Reply With Quote
Old 08-21-2006, 08:07 PM   #8
Reto Zimmermann
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer wrote:
> thanks for your replies,
> unfortunately i did not get it running with your regex,
> i think it's a problem with the binary xemacs version for windows.
> ( i also tried a cygwin version of xemacs, but there is a problem with
> the path)


As far as I know XEmacs has a different compile.el version than FSF
Emacs. Maybe the problem lies there. I only tested vhdl-mode
extensively with FSF Emacs.

Reto


Reto Zimmermann
  Reply With Quote
Old 08-21-2006, 09:46 PM   #9
Thomas Fischer
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Reto Zimmermann schrieb:
> Thomas Fischer wrote:
>> thanks for your replies,
>> unfortunately i did not get it running with your regex,
>> i think it's a problem with the binary xemacs version for windows.
>> ( i also tried a cygwin version of xemacs, but there is a problem with
>> the path)

>
> As far as I know XEmacs has a different compile.el version than FSF
> Emacs. Maybe the problem lies there. I only tested vhdl-mode
> extensively with FSF Emacs.
>
> Reto


thanks,
ok first had to look what FSF emacs is,
i thought that there is only a xemacs windows version, now
i downloaded emacs-21.3-fullbin-i386.tar and it seems to work
as expected.
complete different,
nice highlight colors,
now goto errormessage works,
speedbar works (did not in xemacs),
thanks again


Thomas Fischer
  Reply With Quote
Old 08-28-2006, 12:55 PM   #10
Marcus Harnisch
 
Posts: n/a
Default Re: xemacs vhdl mode goto error
Thomas Fischer <> writes:

> I've downloaded regex coach but I still have problems to determine the
> values for


The XEmacs package re-builder (installable via package manager) is
priceless when dealing with that sort of issues.

-- Marcus


Marcus Harnisch
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
Safe Mode doesn't work, Normal mode does bobG A+ Certification 0 07-06-2004 11:57 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46