mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4683 from keszybz/use-SOURCE_DATE_EPOCH
Respect $SOURCE_DATE_EPOCH in generate_bram_types_sim.py
This commit is contained in:
commit
9f7040b3d1
|
@ -1,10 +1,9 @@
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime, timezone
|
|
||||||
|
|
||||||
def generate(filename):
|
def generate(filename):
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w") as f:
|
||||||
f.write("// **AUTOGENERATED FILE** **DO NOT EDIT**\n")
|
f.write("// **AUTOGENERATED FILE** **DO NOT EDIT**\n")
|
||||||
f.write(f"// Generated by {sys.argv[0]} at {datetime.now(timezone.utc)}\n")
|
f.write(f"// Generated by {sys.argv[0]}\n")
|
||||||
|
|
||||||
f.write("`timescale 1ns /10ps\n")
|
f.write("`timescale 1ns /10ps\n")
|
||||||
for a_width in [1,2,4,9,18,36]:
|
for a_width in [1,2,4,9,18,36]:
|
||||||
|
|
Loading…
Reference in New Issue