mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-03 08:27:11 +02:00
Merge branch 'dev' of github.com:VLSIDA/PrivateRAM into dev
This commit is contained in:
@@ -27,7 +27,7 @@ class bank(design.design):
|
||||
self.sram_config = sram_config
|
||||
sram_config.set_local_config(self)
|
||||
if self.write_size:
|
||||
self.num_wmasks = int(self.word_size / self.write_size)
|
||||
self.num_wmasks = int(ceil(self.word_size / self.write_size))
|
||||
else:
|
||||
self.num_wmasks = 0
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
from tech import drc
|
||||
import debug
|
||||
import design
|
||||
import math
|
||||
from sram_factory import factory
|
||||
from collections import namedtuple
|
||||
from vector import vector
|
||||
@@ -23,7 +24,7 @@ class port_data(design.design):
|
||||
sram_config.set_local_config(self)
|
||||
self.port = port
|
||||
if self.write_size is not None:
|
||||
self.num_wmasks = int(self.word_size / self.write_size)
|
||||
self.num_wmasks = int(math.ceil(self.word_size / self.write_size))
|
||||
else:
|
||||
self.num_wmasks = 0
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#
|
||||
import design
|
||||
import debug
|
||||
import math
|
||||
from tech import drc
|
||||
from sram_factory import factory
|
||||
from vector import vector
|
||||
@@ -39,7 +40,7 @@ class write_driver_array(design.design):
|
||||
self.num_spare_cols = num_spare_cols
|
||||
|
||||
if self.write_size:
|
||||
self.num_wmasks = int(self.word_size / self.write_size)
|
||||
self.num_wmasks = int(math.ceil(self.word_size / self.write_size))
|
||||
|
||||
self.create_netlist()
|
||||
if not OPTS.netlist_only:
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#
|
||||
import design
|
||||
import debug
|
||||
import math
|
||||
from sram_factory import factory
|
||||
from vector import vector
|
||||
from globals import OPTS
|
||||
@@ -31,7 +32,7 @@ class write_mask_and_array(design.design):
|
||||
self.offsets = offsets
|
||||
self.column_offset = column_offset
|
||||
self.words_per_row = int(columns / word_size)
|
||||
self.num_wmasks = int(word_size / write_size)
|
||||
self.num_wmasks = int(math.ceil(word_size / write_size))
|
||||
|
||||
self.create_netlist()
|
||||
if not OPTS.netlist_only:
|
||||
|
||||
Reference in New Issue
Block a user