Skip to content

Commit bde4a38

Browse files
committed
Template section clone method
1 parent 9158e92 commit bde4a38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/base/verilog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def verilog_write(self, verilog_name):
4343
self.vf.write("`endif\n")
4444

4545
for port in self.all_ports:
46+
self.template.cloneSection("PORTS", "PORTS" + str(port))
47+
4648
if port in self.readwrite_ports:
4749
self.vf.write("// Port {0}: RW\n".format(port))
4850
elif port in self.read_ports:

0 commit comments

Comments
 (0)