Update functional script usage tip

This commit is contained in:
Bugra Onal 2023-05-16 15:08:21 -07:00
parent 217b0981a2
commit 5cdecd781b
1 changed files with 6 additions and 8 deletions

View File

@ -19,16 +19,16 @@ from globals import *
# You don't need the next two lines if you're sure that openram package is installed # You don't need the next two lines if you're sure that openram package is installed
from common import * from common import *
make_openram_pacakage() make_openram_package()
import openram import openram
(OPTS, args) = openram.parse_args() (OPTS, args) = openram.parse_args()
# Override the usage # Override the usage
USAGE = "Usage: {} [options] <config file> <cycles> <period>\nUse -h for help.\n".format(__file__) USAGE = "Usage: {} [options] <config file> <sp_file> <cycles> <period>\nUse -h for help.\n".format(__file__)
# Check that we are left with a single configuration file as argument. # Check that we are left with a single configuration file as argument.
if len(args) != 3: if len(args) != 4:
print(USAGE) print(USAGE)
sys.exit(2) sys.exit(2)
@ -36,10 +36,9 @@ OPTS.top_process = 'memfunc'
# Parse argument # Parse argument
config_file = args[0] config_file = args[0]
cycles = int(args[1]) sp_file = args[1]
period = float(args[2]) cycles = int(args[2])
sp_file = args[3] period = float(args[3])
html_file = args[4]
# These depend on arguments, so don't load them until now. # These depend on arguments, so don't load them until now.
from openram import debug from openram import debug
@ -60,7 +59,6 @@ s = fake_sram(name=OPTS.output_name,
num_spare_rows=OPTS.num_spare_rows, num_spare_rows=OPTS.num_spare_rows,
num_spare_cols=OPTS.num_spare_cols) num_spare_cols=OPTS.num_spare_cols)
s.parse_html(html_file)
s.generate_pins() s.generate_pins()
s.setup_multiport_constants() s.setup_multiport_constants()