From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chenyong20000@gmail.com Newsgroups: gmane.emacs.help Subject: Re: confused by emacs verilog mode Date: Sat, 24 May 2014 23:57:03 -0700 (PDT) Message-ID: <5b7a76fa-a710-4c66-8d66-cf213c854be6@googlegroups.com> References: <650ecdaf-085b-4301-8962-7410885713a7@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1401001230 24093 80.91.229.3 (25 May 2014 07:00:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 07:00:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 25 09:00:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WoSPs-0006z1-Qz for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2014 09:00:21 +0200 Original-Received: from localhost ([::1]:50534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoSPs-00059G-8x for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2014 03:00:20 -0400 X-Received: by 10.236.140.42 with SMTP id d30mr7005060yhj.2.1401001023926; Sat, 24 May 2014 23:57:03 -0700 (PDT) X-Received: by 10.50.43.164 with SMTP id x4mr310689igl.6.1401001023752; Sat, 24 May 2014 23:57:03 -0700 (PDT) Original-Path: usenet.stanford.edu!hl10no5197066igb.0!news-out.google.com!qf4ni13600igc.0!nntp.google.com!c1no16442577igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <650ecdaf-085b-4301-8962-7410885713a7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.5.98.28; posting-account=LeWrlQoAAAAT-iPDuAeZcX5BJGbvOkm7 Original-NNTP-Posting-Host: 192.5.98.28 User-Agent: G2/1.0 Injection-Date: Sun, 25 May 2014 06:57:03 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205576 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97846 Archived-At: =E5=9C=A8 2014=E5=B9=B45=E6=9C=8824=E6=97=A5=E6=98=9F=E6=9C=9F=E5=85=ADUTC+= 8=E4=B8=8B=E5=8D=883=E6=97=B651=E5=88=8631=E7=A7=92=EF=BC=8Cchenyo...@gmail= .com=E5=86=99=E9=81=93=EF=BC=9A > Hi, >=20 >=20 >=20 > I'm trying to use emacs verilog mode for vi. I have a piece of code like = this: >=20 >=20 >=20 > fifo_half_entry AUTO_TEMPLATE ( >=20 > .shift_datain_r (dataout0_r_entry_@"(+ 1 = @)"), >=20 > .shift_datain_f (dataout0_f_entry_@"(+ 1 = @)"), >=20 > .dataout_r (dataout0_r_entry_@), >=20 > .dataout_f (dataout0_f_entry_@), >=20 > .datain_r (rddata_in_r[3:0]), >=20 > .datain_f (rddata_in_f[3:0]), >=20 > .fifo_write (fifo_write0_@), >=20 > .fifo_shift (gather_pop), >=20 > .rst_n (rst_n_propgt), >=20 > .clear_fifo (clear_fifo_R), >=20 > ); >=20 > */ >=20 > fifo_half_entry inst_gather_fifol_entry_0 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifol_entry_1 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifol_entry_2 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifol_entry_3 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifol_entry_4 (/*AUTOINST*/); =20 >=20 > /* fifo_half_entry AUTO_TEMPLATE ( >=20 > .shift_datain_r (dataout1_r_entry_@"(+ 1 = @)"), >=20 > .shift_datain_f (dataout1_f_entry_@"(+ 1 = @)"), >=20 > .dataout_r (dataout1_r_entry_@), >=20 > .dataout_f (dataout1_f_entry_@), >=20 > .datain_r (rddata_in_r[7:4]), >=20 > .datain_f (rddata_in_f[7:4]), >=20 > .fifo_write (fifo_write1_@), >=20 > .fifo_shift (gather_pop), >=20 > .rst_n (rst_n_propgt), >=20 > .clear_fifo (clear_fifo_R), >=20 > ); >=20 > */ >=20 > fifo_half_entry inst_gather_fifoh_entry_0 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifoh_entry_1 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifoh_entry_2 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifoh_entry_3 (/*AUTOINST*/); =20 >=20 > fifo_half_entry inst_gather_fifoh_entry_4 (/*AUTOINST*/); >=20 >=20 >=20 > what confused me is that after generate code, it seems like this: >=20 >=20 >=20 > fifo_half_entry AUTO_TEMPLATE ( >=20 > .shift_datain_r (dataout0_r_entry_@"(+ 1 = @)"), >=20 > .shift_datain_f (dataout0_f_entry_@"(+ 1 = @)"), >=20 > .dataout_r (dataout0_r_entry_@), >=20 > .dataout_f (dataout0_f_entry_@), >=20 > .datain_r (rddata_in_r[3:0]), >=20 > .datain_f (rddata_in_f[3:0]), >=20 > .fifo_write (fifo_write0_@), >=20 > .fifo_shift (gather_pop), >=20 > .rst_n (rst_n_propgt), >=20 > .clear_fifo (clear_fifo_R), >=20 > ); >=20 > */ >=20 > fifo_half_entry inst_gather_fifol_entry_0 (/*AUTOINST*/ >=20 > // Outputs >=20 > .dataout_r (dataout1_r_entry_0), // Templated >=20 > .dataout_f (dataout1_f_entry_0), // Templated >=20 > // Inputs >=20 > .clk (clk), >=20 > .rst_n (rst_n_propgt), // Templated >=20 > .datain_r (rddata_in_r[7:4]), // Templated >=20 > .datain_f (rddata_in_f[7:4]), // Templated >=20 > .shift_datain_r (dataout1_r_entry_1), // Templated >=20 > .shift_datain_f (dataout1_f_entry_1), // Templated >=20 > .fifo_write (fifo_write1_0), // Templated >=20 > .fifo_shift (gather_pop), // Templated >=20 > .clear_fifo (clear_fifo_R)); // Templated =20 >=20 > fifo_half_entry inst_gather_fifol_entry_1 (/*AUTOINST*/ >=20 > // Outputs >=20 > .dataout_r (dataout1_r_entry_1), // Templated >=20 > .dataout_f (dataout1_f_entry_1), // Templated >=20 > // Inputs >=20 > .clk (clk), >=20 > .rst_n (rst_n_propgt), // Templated >=20 >=20 >=20 >=20 >=20 > you can find from these code that the dataout0_r_entry_xxx has been chang= ed from dataout0 to dataout1. I don't know how this happens and how can i g= et right code. Can anybody help me? thanks. >=20 >=20 >=20 >=20 >=20 > regards Can anybody give me some suggestion? thanks.