A
alessandro basili
Guest
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
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