Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from ShrreyaSingh/disassembler_changes
Browse files Browse the repository at this point in the history
Disassembler changes for instruction name (auipc, jal, jalr, lui)
  • Loading branch information
pawks authored Aug 3, 2021
2 parents 04822e8 + 5e26328 commit fe0b756
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.6] - 2021-08-03
- Bug fix for error while decoding instruction name

## [0.6.5] - 2021-07-14
- Bug fix for error while generating Data Propagation Report.

Expand Down
2 changes: 1 addition & 1 deletion riscv_isac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__author__ = """InCore Semiconductors Pvt Ltd"""
__email__ = '[email protected]'
__version__ = '0.6.5'
__version__ = '0.6.6'
3 changes: 2 additions & 1 deletion riscv_isac/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from collections.abc import MutableMapping


unsgn_rs1 = ['sw','sd','sh','sb','ld','lw','lwu','lh','lhu','lb', 'lbu','flw','fld','fsw','fsd'\
unsgn_rs1 = ['sw','sd','sh','sb','ld','lw','lwu','lh','lhu','lb', 'lbu','flw','fld','fsw','fsd',\
'bgeu', 'bltu', 'sltiu', 'sltu','c.lw','c.ld','c.lwsp','c.ldsp',\
'c.sw','c.sd','c.swsp','c.sdsp','mulhu','divu','remu','divuw',\
'remuw','aes64ds','aes64dsm','aes64es','aes64esm','aes64ks2',\
Expand Down Expand Up @@ -770,6 +770,7 @@ def compute(trace_file, test_name, cgf, parser_name, decoder_name, detailed, xle
if instr is None:
continue
instrObj = (decoder.decode(instrObj_temp = instrObj_temp))[0]
logger.debug(instrObj)
rcgf = compute_per_line(instrObj, cgf, xlen,
addr_pairs, sig_addrs)

Expand Down
4 changes: 4 additions & 0 deletions riscv_isac/plugins/internaldecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def lui(self, instrObj):
rd = ((instr & self.RD_MASK) >> 7, 'x')
instrObj.rd = rd
instrObj.imm = imm
instrObj.instr_name = "lui"
return instrObj

def auipc(self, instrObj):
Expand All @@ -71,6 +72,7 @@ def auipc(self, instrObj):
rd = ((instr & self.RD_MASK) >> 7, 'x')
instrObj.rd = rd
instrObj.imm = imm
instrObj.instr_name = "auipc"
return instrObj

def jal(self, instrObj):
Expand All @@ -84,6 +86,7 @@ def jal(self, instrObj):
rd = ((instr & self.RD_MASK) >> 7, 'x')
instrObj.imm = imm
instrObj.rd = rd
instrObj.instr_name = "jal"
return instrObj

def jalr(self, instrObj):
Expand All @@ -95,6 +98,7 @@ def jalr(self, instrObj):
instrObj.rd = rd
instrObj.rs1 = rs1
instrObj.imm = imm
instrObj.instr_name = "jalr"
return instrObj

def branch_ops(self, instrObj):
Expand Down
1 change: 1 addition & 0 deletions riscv_isac/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
click
ruamel.yaml>=0.16.0
pyyaml
pyelftools==0.26
colorlog
pytest
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.6.5
current_version = 0.6.6
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read_requires():

setup(
name='riscv_isac',
version='0.6.5',
version='0.6.6',
description="RISC-V ISAC",
long_description=readme + '\n\n',
classifiers=[
Expand Down

0 comments on commit fe0b756

Please sign in to comment.