Merge pull request #940 from betrusted-io/keyclear_merge

breakout the keyclearb pin for integration elsewhere
This commit is contained in:
bunnie 2021-06-11 04:46:08 +08:00 committed by GitHub
commit 6b8a35a2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class S7SPIOPI(Module, AutoCSR, AutoDoc):
self.cipo_name = cipo_name self.cipo_name = cipo_name
self.spiread = spiread self.spiread = spiread
self.gsr = Signal() self.gsr = Signal()
self.keyclearb = Signal(reset=1)
self.cfgmclk = Signal() self.cfgmclk = Signal()
self.dq = dq = TSTriple(7) # dq[0] is special because it is also copi self.dq = dq = TSTriple(7) # dq[0] is special because it is also copi
@ -293,7 +294,7 @@ class S7SPIOPI(Module, AutoCSR, AutoDoc):
i_CLK = 0, i_CLK = 0,
i_GSR = self.gsr, i_GSR = self.gsr,
i_GTS = 0, i_GTS = 0,
i_KEYCLEARB = 0, i_KEYCLEARB = self.keyclearb,
i_PACK = 0, i_PACK = 0,
i_USRDONEO = 1, i_USRDONEO = 1,
i_USRDONETS = 1, i_USRDONETS = 1,