Advice on configuring vim & syntastic for vhdl

Status
Not open for further replies.

wtr

Full Member level 5
Joined
May 1, 2014
Messages
299
Helped
29
Reputation
58
Reaction score
25
Trophy points
1,308
Activity points
4,108
Hello all,

I've got vim/gvim. I've got plugin syntastic.

I have ghdl install on my computer & path mapped to my environment variables.

In my vimrc I have
Code:
set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_enable_signs = 1
let g:syntastic_vhdl_checkers = ['ghdl']

The problem I'm getting is as follows
VHDL code in file is

Code VHDL - [expand]
1
clkdiv : entity Work.ClockDivisor Port Map (4, clk, int_clk);


The syntasticcheck gives me this error
Code:
file.vhd|95 col 26 error| primary unit clockdevisor not found in library "work"

Now it makes sense, since how would ghdl know about external files. Is there a way I can link it up like how someone does ctags which span multiple files. OR can I suppress these types of errors?

Much appreciated, and if there isn't yet. I think it's worth creating an article how someone can create their own hdl IDE using opensource applications.

Regards,
Wes
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…