Template section clone method

This commit is contained in:
Bugra Onal 2022-03-09 08:58:29 -08:00
parent 9158e92a71
commit bde4a389aa
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ class verilog:
self.vf.write("`endif\n")
for port in self.all_ports:
self.template.cloneSection("PORTS", "PORTS" + str(port))
if port in self.readwrite_ports:
self.vf.write("// Port {0}: RW\n".format(port))
elif port in self.read_ports: