<commit_before>
jtag newtap zed tap -irlen 6 -ircapture 0x01 -expected-id  0x03727093
jtag newtap cortex tap -irlen 4 -ircapture 0x01 -expected-id  0x4ba00477

# targets cortex_a

verify_jtag

init
scan_chain

# try reading out IDCODE register 001001
irscan zed.tap 9
set idreg [drscan zed.tap 64 0]
echo "idreg "$idreg

# try reading out SAMPLE register 000001
irscan zed.tap 1
set samreg [drscan zed.tap 32 0]
echo "samreg "$samreg

# try reading out USER1 register 000010
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xdeadbeef]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0x12345678]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xabcdef01]

# try reading out USER2 register 000011
irscan zed.tap 3
echo "USER2="[drscan zed.tap 32 0x87654321]
#svf -tap zed.tap foo.test
#runtest 10
shutdown
<commit_msg>updated jtag readout test script<commit_after>
jtag newtap zed tap -irlen 6 -ircapture 0x01 -expected-id  0x03727093
jtag newtap cortex tap -irlen 4 -ircapture 0x01 -expected-id  0x4ba00477

# targets cortex_a

verify_jtag

init
scan_chain

# try reading out IDCODE register 001001
irscan zed.tap 9
set idreg [drscan zed.tap 64 0]
echo "idreg "$idreg

# try reading out SAMPLE register 000001
irscan zed.tap 1
set samreg [drscan zed.tap 32 0]
echo "samreg "$samreg

# try reading out USER2 register 000011
irscan zed.tap 3
echo "USER2="[drscan zed.tap 32 0x87654321]

# try reading out USER1 register 000010
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xdeadbeef]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0x12345678]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xabcdef01]

# try reading out USER2 register 000011
irscan zed.tap 3
echo "USER2="[drscan zed.tap 32 0x87654321]

# try reading out USER1 register 000010
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xaaaabbbb]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xccccdddd]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0xeeeeffff]

# try reading out USER2 register 000011
irscan zed.tap 3
echo "USER2="[drscan zed.tap 32 0x87654321]

# try reading out USER1 register 000010
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0x55556666]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0x77778888]
irscan zed.tap 2
echo "USER1="[drscan zed.tap 32 0x9999aaaa]
#svf -tap zed.tap foo.test
#runtest 10
shutdown

{'fraction_non_alphanumeric': 0.08048463868455215, 'fraction_numerical': 0.12981393336218086, 'mean_word_length': 4.5443645083932855, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1630332', 'n_tokens_mistral': 1199, 'n_tokens_neox': 928, 'n_words': 318}