mirror of https://github.com/VLSIDA/OpenRAM.git
switch to git rev-parse solution for id parsing
This commit is contained in:
parent
468eb9a4a0
commit
7e475b376e
|
|
@ -509,7 +509,7 @@ class lib:
|
||||||
return
|
return
|
||||||
datasheet = open(OPTS.openram_temp +'/datasheet.info', 'a+')
|
datasheet = open(OPTS.openram_temp +'/datasheet.info', 'a+')
|
||||||
|
|
||||||
with open(os.environ.get("OPENRAM_HOME") + "/datasheet/ORIG_HEAD", "r") as f:
|
with open(os.environ.get("OPENRAM_HOME") + "/git_id", "r") as f:
|
||||||
origin_id = f.readline()
|
origin_id = f.readline()
|
||||||
|
|
||||||
datasheet.write("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},".format(
|
datasheet.write("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},".format(
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
2c12ef2161d3f404c56bc0c191d279db21073414
|
|
||||||
|
|
@ -42,6 +42,7 @@ from sram_config import sram_config
|
||||||
output_extensions = ["sp","v","lib","py"]
|
output_extensions = ["sp","v","lib","py"]
|
||||||
if OPTS.datasheet_gen:
|
if OPTS.datasheet_gen:
|
||||||
output_extensions.append("html")
|
output_extensions.append("html")
|
||||||
|
os.system('git rev-parse HEAD > git_id')
|
||||||
if not OPTS.netlist_only:
|
if not OPTS.netlist_only:
|
||||||
output_extensions.extend(["gds","lef"])
|
output_extensions.extend(["gds","lef"])
|
||||||
output_files = ["{0}.{1}".format(OPTS.output_name,x) for x in output_extensions]
|
output_files = ["{0}.{1}".format(OPTS.output_name,x) for x in output_extensions]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue