Skip to content

Commit

Permalink
Make VLEN and ELEN configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Yui5427 committed Oct 17, 2024
1 parent 76d594f commit a641685
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions model/riscv_vlen.sail
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,3 @@ val sys_vector_vlen_exp = pure "sys_vector_vlen_exp" : unit -> range(3, 16)
function get_vlen_pow() -> range(3, 16) = sys_vector_vlen_exp()

type vlenmax : Int = 65536

/* Note: At present, the values of elen and vlen need to be manually speficied
* in the init_sys() function of riscv_sys_control.sail before compiling the emulators,
* e.g.,
* vlen = 0b0101;
* elen = 0b1;
* means VLEN = 1024 and ELEN = 64,
* They will be configurable when user-specified configuration is supported in Sail.
*
* Also, VLEN >= ELEN must be satisfied and this condition check should be added
* after their initialization.
*/

0 comments on commit a641685

Please sign in to comment.