Skip to content

Commit

Permalink
Fix instantiation of modules from files that do not have parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed Jun 27, 2023
1 parent 59fdd4f commit 308c95d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions verilog-ext-template.el
Original file line number Diff line number Diff line change
Expand Up @@ -522,24 +522,24 @@ Use inst INST-TEMPLATE or prompt to choose one if nil."
"Instantiate from FILE with simple template: connected ports and no parameters."
(interactive "FSelect module from file:")
(verilog-ext-template-inst-auto-from-file file
verilog-ext-template-inst-auto-conn-ports
verilog-ext-template-inst-auto-simple))
verilog-ext-template-inst-auto-conn-ports
verilog-ext-template-inst-auto-simple))

(defun verilog-ext-template-inst-auto-from-file-params (file)
"Instantiate from FILE with params template: connected ports with parameters."
(interactive "FSelect module from file:")
(verilog-ext-template-inst-auto-from-file file
verilog-ext-template-inst-auto-conn-ports
verilog-ext-template-inst-auto-params))
verilog-ext-template-inst-auto-conn-ports
verilog-ext-template-inst-auto-params))

(defun verilog-ext-template-inst-auto-from-file-tb-dut (file)
"Instantiate from FILE with params template:
- Connected ports with subscripts with parameters.
- Required by TB template instantiation to auto detect width of signals."
(interactive "FSelect module from file:")
(verilog-ext-template-inst-auto-from-file file
verilog-ext-template-inst-auto-conn-ports-ss
verilog-ext-template-inst-auto-params))
verilog-ext-template-inst-auto-conn-ports-ss
nil))

(defun verilog-ext-template-inst-auto-from-file-prompt (file)
"Instantiate from FILE and prompt for template and parameters."
Expand Down

0 comments on commit 308c95d

Please sign in to comment.