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: confused by emacs verilog mode Date: Sat, 24 May 2014 00:51:31 -0700 (PDT) Message-ID: <650ecdaf-085b-4301-8962-7410885713a7@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1400948499 20604 80.91.229.3 (24 May 2014 16:21:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2014 16:21:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 24 18:21:32 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 1WoEhK-00021R-Fu for geh-help-gnu-emacs@m.gmane.org; Sat, 24 May 2014 18:21:26 +0200 Original-Received: from localhost ([::1]:48711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoEhK-00009S-2k for geh-help-gnu-emacs@m.gmane.org; Sat, 24 May 2014 12:21:26 -0400 X-Received: by 10.58.141.200 with SMTP id rq8mr4125481veb.31.1400917892075; Sat, 24 May 2014 00:51:32 -0700 (PDT) X-Received: by 10.50.78.38 with SMTP id y6mr198624igw.8.1400917891982; Sat, 24 May 2014 00:51:31 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no15727402igq.0!news-out.google.com!qf4ni12380igc.0!nntp.google.com!c1no15727392igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help 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: Sat, 24 May 2014 07:51:31 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205541 X-Mailman-Approved-At: Sat, 24 May 2014 12:21:15 -0400 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:97819 Archived-At: Hi, I'm trying to use emacs verilog mode for vi. I have a piece of code like this: fifo_half_entry AUTO_TEMPLATE ( .shift_datain_r (dataout0_r_entry_@"(+ 1 @)"), .shift_datain_f (dataout0_f_entry_@"(+ 1 @)"), .dataout_r (dataout0_r_entry_@), .dataout_f (dataout0_f_entry_@), .datain_r (rddata_in_r[3:0]), .datain_f (rddata_in_f[3:0]), .fifo_write (fifo_write0_@), .fifo_shift (gather_pop), .rst_n (rst_n_propgt), .clear_fifo (clear_fifo_R), ); */ fifo_half_entry inst_gather_fifol_entry_0 (/*AUTOINST*/); fifo_half_entry inst_gather_fifol_entry_1 (/*AUTOINST*/); fifo_half_entry inst_gather_fifol_entry_2 (/*AUTOINST*/); fifo_half_entry inst_gather_fifol_entry_3 (/*AUTOINST*/); fifo_half_entry inst_gather_fifol_entry_4 (/*AUTOINST*/); /* fifo_half_entry AUTO_TEMPLATE ( .shift_datain_r (dataout1_r_entry_@"(+ 1 @)"), .shift_datain_f (dataout1_f_entry_@"(+ 1 @)"), .dataout_r (dataout1_r_entry_@), .dataout_f (dataout1_f_entry_@), .datain_r (rddata_in_r[7:4]), .datain_f (rddata_in_f[7:4]), .fifo_write (fifo_write1_@), .fifo_shift (gather_pop), .rst_n (rst_n_propgt), .clear_fifo (clear_fifo_R), ); */ fifo_half_entry inst_gather_fifoh_entry_0 (/*AUTOINST*/); fifo_half_entry inst_gather_fifoh_entry_1 (/*AUTOINST*/); fifo_half_entry inst_gather_fifoh_entry_2 (/*AUTOINST*/); fifo_half_entry inst_gather_fifoh_entry_3 (/*AUTOINST*/); fifo_half_entry inst_gather_fifoh_entry_4 (/*AUTOINST*/); what confused me is that after generate code, it seems like this: fifo_half_entry AUTO_TEMPLATE ( .shift_datain_r (dataout0_r_entry_@"(+ 1 @)"), .shift_datain_f (dataout0_f_entry_@"(+ 1 @)"), .dataout_r (dataout0_r_entry_@), .dataout_f (dataout0_f_entry_@), .datain_r (rddata_in_r[3:0]), .datain_f (rddata_in_f[3:0]), .fifo_write (fifo_write0_@), .fifo_shift (gather_pop), .rst_n (rst_n_propgt), .clear_fifo (clear_fifo_R), ); */ fifo_half_entry inst_gather_fifol_entry_0 (/*AUTOINST*/ // Outputs .dataout_r (dataout1_r_entry_0), // Templated .dataout_f (dataout1_f_entry_0), // Templated // Inputs .clk (clk), .rst_n (rst_n_propgt), // Templated .datain_r (rddata_in_r[7:4]), // Templated .datain_f (rddata_in_f[7:4]), // Templated .shift_datain_r (dataout1_r_entry_1), // Templated .shift_datain_f (dataout1_f_entry_1), // Templated .fifo_write (fifo_write1_0), // Templated .fifo_shift (gather_pop), // Templated .clear_fifo (clear_fifo_R)); // Templated fifo_half_entry inst_gather_fifol_entry_1 (/*AUTOINST*/ // Outputs .dataout_r (dataout1_r_entry_1), // Templated .dataout_f (dataout1_f_entry_1), // Templated // Inputs .clk (clk), .rst_n (rst_n_propgt), // Templated you can find from these code that the dataout0_r_entry_xxx has been changed from dataout0 to dataout1. I don't know how this happens and how can i get right code. Can anybody help me? thanks. regards