This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the code for Zcf and Zcd extensions
- Loading branch information
Showing
6 changed files
with
229 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
c.flw: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.flw: 0 | ||
rs1: | ||
<<: *c_regs | ||
rd: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.flwsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.flwsp: 0 | ||
rd: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.fsw: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.fsw: 0 | ||
rs1: | ||
<<: *c_regs | ||
rs2: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rs2': 0 | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.fswsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.fswsp: 0 | ||
rs2: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*4)': 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
c.fld: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
mnemonics: | ||
c.fld: 0 | ||
rs1: | ||
<<: *c_regs | ||
rd: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rd': 0 | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsd: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsd: 0 | ||
rs1: | ||
<<: *c_regs | ||
rs2: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rs2': 0 | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fldsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fldsp: 0 | ||
rd: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsdsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsdsp: 0 | ||
rs2: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 |