File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 3535 " else" " match" " in" " return" " register" " ref" " forall" " operator" " effect" " config"
3636 " overload" " cast" " sizeof" " constant" " constraint" " default" " assert" " newtype" " from"
3737 " pure" " impure" " monadic" " infixl" " infixr" " infix" " scattered" " end" " try" " catch" " and" " to" " private"
38- " throw" " clause" " as" " repeat" " until" " while" " do" " foreach" " bitfield"
38+ " throw" " clause" " as" " repeat" " until" " while" " do" " foreach" " bitfield" " when "
3939 " mapping" " where" " with" " implicit" " instantiation" " impl" " forwards" " backwards" ))
4040
4141(defconst sail-project-keywords
107107 (setq-local comment-end " */" )
108108 (setq major-mode 'sail-mode )
109109 (setq mode-name " Sail" )
110- (add-hook 'sail-mode-hook
111- (lambda () (add-hook 'after-save-hook 'sail-load nil 'local )))
110+ ; ; (add-hook 'sail-mode-hook
111+ ; ; (lambda () (add-hook 'after-save-hook 'sail-load nil 'local)))
112112 (run-hooks 'sail-mode-hook ))
113113
114114; ; (with-eval-after-load 'lsp-mode **/
Original file line number Diff line number Diff line change 1+ default Order dec
2+
3+ $include < vector.sail>
4+
5+ union instruction = {
6+ LUI : bitvector (6 )
7+ }
8+
9+ val encdec : instruction <-> bitvector (11 )
10+ scattered mapping encdec
11+
12+ mapping clause encdec = LUI (imm )
13+ <-> 0b011 @ imm [5 ] : bitvector (1 ) @ imm [4 .. 0 ] : bitvector (5 ) @ 0b01
14+ when imm != 0b000000
15+
16+ end encdec
You can’t perform that action at this time.
0 commit comments