mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 09:58:33 +02:00
Template section clone method
This commit is contained in:
@@ -38,6 +38,8 @@ class verilog:
|
||||
self.template.setTextDict('GND', self.gnd_name)
|
||||
|
||||
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:
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#>WRITE_SIZE_CMT
|
||||
|
||||
module #$MODULE_NAME$# (
|
||||
#<PORTS
|
||||
`ifdef USE_POWER_PINS
|
||||
#$VDD$#,
|
||||
#$GND$#,
|
||||
@@ -28,6 +29,7 @@ module #$MODULE_NAME$# (
|
||||
// Port #$PORT_NUM$#: W
|
||||
clk#$PORT_NUM#$,csb#$PORT_NUM$#,web$#PORT_NUM$#,addr#PORT_NUM$#,din#PORT_NUM$#
|
||||
#>W_PORT
|
||||
#>PORTS
|
||||
);
|
||||
#<WMASK_PAR
|
||||
parameter NUM_WMASK = #$NUM_WMASK#$ ;
|
||||
|
||||
Reference in New Issue
Block a user