Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arsh Noor Amin
pyriscv
Commits
4636517f
Commit
4636517f
authored
Dec 02, 2021
by
Christina Yu
Browse files
lab7 start
parent
4ef4189d
Changes
3
Hide whitespace changes
Inline
Side-by-side
riscv_isa/__pycache__/isa.cpython-37.pyc
View file @
4636517f
No preview for this file type
riscv_isa/isa.py
View file @
4636517f
...
...
@@ -20,7 +20,7 @@ def regNumToName(num):
instrDict
=
{
"I"
:
[
"lw"
,
"addi"
,
"slti"
,
"ori"
,
"andi"
,
"slli"
,
"sltiu"
,
"xori"
,
"srli"
,
"srai"
,
"ecall"
,
"jalr"
,
"lbu"
,
"fence"
],
"srai"
,
"ecall"
,
"jalr"
,
"lbu"
,
"fence"
,
"CSRRW"
,
"CSRRS"
,
"CSRRC"
,
"CSRRW1"
,
"CSRRS1"
,
"CSRRC1"
],
"R"
:
[
"sub"
,
"add"
,
"sll"
,
"slt"
,
"sltu"
,
"xor"
,
"srl"
,
"sra"
,
"or"
,
"and"
],
"U"
:
[
"lui"
,
"auipc"
],
...
...
test.py
deleted
100644 → 0
View file @
4ef4189d
import
os
,
sys
if
not
sys
.
argv
[
1
].
endswith
(
"
\\
"
):
sys
.
argv
[
1
]
+=
"
\\
"
if
not
os
.
path
.
isdir
(
sys
.
argv
[
1
]):
exit
(
"ERROR: provided path is not a directory"
)
for
elf_file
in
os
.
listdir
(
sys
.
argv
[
1
]):
print
(
f
"TESTING: ---
{
elf_file
}
"
)
os
.
system
(
f
"python onestage_elf.py
{
sys
.
argv
[
1
]
}{
elf_file
}
-t -s"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment