Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   vhdl in emacs (http://www.velocityreviews.com/forums/t369781-vhdl-in-emacs.html)

alessandro basili 09-11-2006 09:34 AM

vhdl in emacs
 
hi guys, is there anyone who is using emacs to edit vhdl code?
I'm not used to emacs programming but I do use it a lot to write vhdl
code. But I'd like to customize it a bit and edit the template for the
process or for some others. To be more specific I rather like to write
in this way:

ProcessLabel: process (clk, nrst)
begin
if nrst = '0' then
sigA <= '0';
elsif rising_edge (clk) then
sigA <= sigB;
end if;
end process;

instead of:

ProcessLabel: process (clk, nrst)
begin
if nrst = '0' then
sigA <= '0';
elsif clk'event and clk = '1' then
sigA <= sigB;
end if;
end process;

Can anyone tell me how to change these templates?
By the way I'm using emacs under windows, can it be still possible?

thanks a lot

Alessandro Basili

sdroamt@netscape.net 09-11-2006 10:07 AM

Re: vhdl in emacs
 
alessandro basili wrote:
> hi guys, is there anyone who is using emacs to edit vhdl code?
> I'm not used to emacs programming but I do use it a lot to write vhdl
> code. But I'd like to customize it a bit and edit the template for the
> ...
> ...
> Can anyone tell me how to change these templates?
> By the way I'm using emacs under windows, can it be still possible?
>


You should locate
"vhdl-mode.el"
in your installation and modify it (is a lisp code)

on my OS there is "vhdl-mode.elc" ... a byte-code compiled version...
If you have a compiled version too... maybe you can substitute it with
the source code but I'm not sure...
You can find some example in
http://stuff.mit.edu/afs/sipb/contri...0/vhdl-mode.el

Sandro


alessandro basili 09-11-2006 11:04 AM

Re: vhdl in emacs
 
Thanks a lot Sandro, I went through it but I thought it could have been
much easier, I'll see if it's worth to do that.
See you

Alessandro

sdroamt@netscape.net wrote:
> alessandro basili wrote:
>
>>hi guys, is there anyone who is using emacs to edit vhdl code?
>>I'm not used to emacs programming but I do use it a lot to write vhdl
>>code. But I'd like to customize it a bit and edit the template for the
>>...
>>...
>>Can anyone tell me how to change these templates?
>>By the way I'm using emacs under windows, can it be still possible?
>>

>
>
> You should locate
> "vhdl-mode.el"
> in your installation and modify it (is a lisp code)
>
> on my OS there is "vhdl-mode.elc" ... a byte-code compiled version...
> If you have a compiled version too... maybe you can substitute it with
> the source code but I'm not sure...
> You can find some example in
> http://stuff.mit.edu/afs/sipb/contri...0/vhdl-mode.el
>
> Sandro
>


Marcus Harnisch 09-11-2006 11:33 AM

Re: vhdl in emacs
 
Allessandro,

Check out this menu item:

VHDL -> Options -> Templates -> Sequential Process -> Clock Edge Condition

Regards,
Marcus


All times are GMT. The time now is 01:39 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, 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 47 48 49 50 51 52 53 54 55 56 57