mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 09:58:33 +02:00
Move pin name mapping to layout class.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#
|
||||
import debug
|
||||
import design
|
||||
from tech import cell_properties as props
|
||||
from vector import vector
|
||||
from sram_factory import factory
|
||||
from globals import OPTS
|
||||
@@ -138,7 +137,7 @@ class dff_array(design.design):
|
||||
height=dout_pin.height())
|
||||
|
||||
# Create vertical spines to a single horizontal rail
|
||||
clk_pin = self.dff_insts[0, 0].get_pin(props.dff.pin.clk)
|
||||
clk_pin = self.dff_insts[0, 0].get_pin("clk")
|
||||
clk_ypos = 2 * self.m3_pitch + self.m3_width
|
||||
debug.check(clk_pin.layer == "m2", "DFF clk pin not on metal2")
|
||||
self.add_layout_pin_segment_center(text="clk",
|
||||
@@ -146,7 +145,7 @@ class dff_array(design.design):
|
||||
start=vector(0, clk_ypos),
|
||||
end=vector(self.width, clk_ypos))
|
||||
for col in range(self.columns):
|
||||
clk_pin = self.dff_insts[0, col].get_pin(props.dff.pin.clk)
|
||||
clk_pin = self.dff_insts[0, col].get_pin("clk")
|
||||
# Make a vertical strip for each column
|
||||
self.add_rect(layer="m2",
|
||||
offset=clk_pin.ll().scale(1, 0),
|
||||
|
||||
Reference in New Issue
Block a user