Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
svf_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Magnus.Ersdal
svf_project
Commits
4457b49a
Commit
4457b49a
authored
6 years ago
by
Magnus.Ersdal
Browse files
Options
Downloads
Patches
Plain Diff
upd
parent
395836de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jtag_if/jtag_io.py
+5
-2
5 additions, 2 deletions
jtag_if/jtag_io.py
tests/test_whole_list_with_logging.py
+1
-1
1 addition, 1 deletion
tests/test_whole_list_with_logging.py
with
6 additions
and
3 deletions
jtag_if/jtag_io.py
+
5
−
2
View file @
4457b49a
...
...
@@ -13,6 +13,7 @@ import settings
TMSregs
=
settings
.
TMSregs
TDOregs
=
settings
.
TDOregs
TDIregs
=
settings
.
TDIregs
tms_tdo_regs
=
TMSregs
+
TDOregs
zeros
=
"
0
"
*
32
...
...
@@ -49,9 +50,12 @@ def read128(sca):
# data.append(sca.)
def
write_4_ints
(
tms_list
,
tdi_list
,
sca
):
"""
for tmsreg, tdireg, tmsdata, tdidata in zip(TMSregs,TDOregs,tms_list,tdi_list):
sca.wr(tmsreg,tmsdata)
sca.wr(tdireg,tdidata)
"""
emap
(
sca
.
wr
,
tms_tdo_regs
,
tms_list
+
tdi_list
)
# possibly lower overhead than a for loop
sca
.
wr
(
SCARegs
[
'
JTAG_GO
'
],
0
)
def
write_TMS_zeros
(
sca
,
length
=
128
):
...
...
@@ -73,8 +77,7 @@ def write_128_TDI(tdi_bits, sca):
sca
.
wr
(
SCARegs
[
'
JTAG_GO
'
],
0
)
def
write_wait
(
sca
,
length
):
nx_128
=
int
(
length
/
128
)
nx_128
=
int
(
length
/
128
)
write_TMS_zeros
(
sca
)
for
i
in
range
(
nx_128
):
write_128_TDI_zeros
(
sca
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/test_whole_list_with_logging.py
+
1
−
1
View file @
4457b49a
...
...
@@ -46,7 +46,7 @@ def space():
def
littlespace
():
print
(
"
------
"
)
li
=
read_svf
(
"
../
p
.svf
"
)
#("../p_400klines.svf")#("../p_reduced.svf")
li
=
read_svf
(
"
../
idcode
.svf
"
)
#("../p_400klines.svf")#("../p_reduced.svf")
# operation completed in 4 minutes 27.190409 seconds for 200klines with delays.
# operation completed in 4 minutes 56.811993 seconds for 400klines with delays.
# operation completed in 35 minutes 21.746152 seconds for 400klines with delays. what happened?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment