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
47e6985a
Commit
47e6985a
authored
7 years ago
by
Magnus.Ersdal
Browse files
Options
Downloads
Patches
Plain Diff
prepare for HW test
#1
parent
3c12478d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
idcode.svf
+14
-0
14 additions, 0 deletions
idcode.svf
read_raw_sca.py
+30
-0
30 additions, 0 deletions
read_raw_sca.py
settings.py
+47
-0
47 additions, 0 deletions
settings.py
with
91 additions
and
0 deletions
idcode.svf
0 → 100644
+
14
−
0
View file @
47e6985a
!#STAPL_VERSION JESD71;
!#VENDOR Microsemi Corporation;
!#IDCODE 063261CF;
!#IDMASK 03FFFFFF;
FREQUENCY 4E6 HZ;
STATE RESET;
RUNTEST IDLE 5 TCK;
ENDIR IRPAUSE;
ENDDR DRPAUSE;
SIR 8 TDI(0F);
SDR 32 TDI(00000000);
STATE IDLE;
RUNTEST IDLE 1 TCK;
SDR 32 TDI(AAAAAAAA) TDO(063261CF) MASK(07FFFFFF);
This diff is collapsed.
Click to expand it.
read_raw_sca.py
0 → 100644
+
30
−
0
View file @
47e6985a
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 9 10:42:00 2018
@author: Magnus Rentsch Ersdal (magnus.ersdal@uib.no)
RAW sca reader
"""
from
hwdriver.SCA
import
Sca
from
settings
import
z
,
TDIregs
id_card
=
1
gbt_ch
=
0
board
=
"
CRU
"
sca
=
Sca
(
id_card
,
2
,
gbt_ch
,
board
,
logger
=
z
)
print
(
"
input
\"
q
\"
to quit
"
)
try
:
while
(
True
):
inp
=
input
()
if
inp
==
'
q
'
:
break
else
:
for
reg
in
TDIregs
:
sca
.
wr
(
reg
,
0
)
print
(
sca
.
rdstr
())
print
(
sca
.
readbin
())
except
KeyboardInterrupt
:
print
(
"
C-C caught
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
settings.py
0 → 100644
+
47
−
0
View file @
47e6985a
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 3 16:32:58 2018
@author: Magnus Rentsch Ersdal (magnus.ersdal@uib.no)
global objects, required for many blocks of the software.
"""
#import hwdriver.SCA
from
SCARegs
import
SCARegs
from
logcomponents.zmqsender
import
Sender
#import jtag_if.jtag_sequencer as jtag_seq
import
jtag_if.jtag_tap
as
jtag_tap
#def init():
# global z
z
=
Sender
()
#id_card = 1
#gbt_ch = 0
#board = "CRU"
#
#sca = hwdriver.SCA.Sca(id_card,2,gbt_ch,board, z)
four_32b_high
=
[
0xff_ff_ff_ff
]
*
4
four_32b_high_str
=
[
"
1
"
*
32
]
*
4
TMSregs
=
[
SCARegs
[
'
JTAG_W_TMS0
'
],
SCARegs
[
'
JTAG_W_TMS1
'
],
SCARegs
[
'
JTAG_W_TMS2
'
],
SCARegs
[
'
JTAG_W_TMS3
'
]]
TDOregs
=
[
SCARegs
[
'
JTAG_W_TDO0
'
],
SCARegs
[
'
JTAG_W_TDO1
'
],
SCARegs
[
'
JTAG_W_TDO2
'
],
SCARegs
[
'
JTAG_W_TDO3
'
]]
TDIregs
=
[
SCARegs
[
'
JTAG_R_TDI0
'
],
SCARegs
[
'
JTAG_R_TDI1
'
],
SCARegs
[
'
JTAG_R_TDI2
'
],
SCARegs
[
'
JTAG_R_TDI3
'
]]
highTMS_zip
=
zip
(
TMSregs
,
four_32b_high
)
highTMS_bin_zip
=
zip
(
TMSregs
,
four_32b_high_str
)
FIFOLEN
=
128
FREQUENCY
=
20e6
#jtg_seq = jtag_seq.Seq()
jtg_tp
=
jtag_tap
.
tap
()
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