From: chenyong20000@gmail.com
To: help-gnu-emacs@gnu.org
Subject: confused by emacs verilog mode
Date: Sat, 24 May 2014 00:51:31 -0700 (PDT) [thread overview]
Message-ID: <650ecdaf-085b-4301-8962-7410885713a7@googlegroups.com> (raw)
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
next reply other threads:[~2014-05-24 7:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-24 7:51 chenyong20000 [this message]
2014-05-25 6:57 ` confused by emacs verilog mode chenyong20000
2014-05-25 19:36 ` Stefan Monnier
[not found] ` <mailman.2075.1401046828.1147.help-gnu-emacs@gnu.org>
2014-05-26 1:05 ` chenyong20000
2014-05-26 2:20 ` chenyong20000
2014-05-26 6:41 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=650ecdaf-085b-4301-8962-7410885713a7@googlegroups.com \
--to=chenyong20000@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.