Commit 97e26516 authored by Robert Jördens's avatar Robert Jördens
Browse files

kasli: set USERID and USR_ACCESS

* Set USR_ACCESS to a timestamp. that enables a bit of bitstream forensics
  when the origin is unclear.
* Set USERID to all-ones. E.g. misoc/artiq can set it to a shortened git
  hash.
parent 58894fbd
......@@ -431,6 +431,7 @@ _connectors = [
class Platform(XilinxPlatform):
default_clk_name = "clk50"
default_clk_period = 20.0
userid = 0xffffffff
def __init__(self, hw_rev="v1.0"):
if hw_rev == "v1.0":
......@@ -452,6 +453,8 @@ class Platform(XilinxPlatform):
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",
"set_property BITSTREAM.CONFIG.CONFIGRATE 33 [current_design]",
"set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 2 [current_design]",
"set_property BITSTREAM.CONFIG.USR_ACCESS TIMESTAMP [current_design]",
"set_property BITSTREAM.CONFIG.USERID \"{:#010x}\" [current_design]".format(self.userid),
"set_property CFGBVS VCCO [current_design]",
"set_property CONFIG_VOLTAGE 2.5 [current_design]",
])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment