diff options
| author | Thomas Bauereiss | 2019-03-15 14:51:00 +0000 |
|---|---|---|
| committer | Thomas Bauereiss | 2019-03-15 18:47:30 +0000 |
| commit | abab0b23aef8404fc62d4f856df74597a5d86a18 (patch) | |
| tree | 8b536af58d4f2e57f5509da650aa692cc3b22dfa /lib | |
| parent | 541c1880d31a47302fea48725bd7247d374828d6 (diff) | |
Various monomorphisation tweaks and fixes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vector_dec.sail | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vector_dec.sail b/lib/vector_dec.sail index 9eea3112..7d85dcc5 100644 --- a/lib/vector_dec.sail +++ b/lib/vector_dec.sail @@ -174,6 +174,9 @@ function sail_ones(n) = not_vec(sail_zeros(n)) // Some ARM specific builtins +val slice = "slice" : forall 'n 'm 'o, 0 <= 'm & 0 <= 'n. + (bits('m), atom('o), atom('n)) -> bits('n) + val replicate_bits = "replicate_bits" : forall 'n 'm. (bits('n), atom('m)) -> bits('n * 'm) val slice_mask : forall 'n, 'n >= 0. (implicit('n), int, int) -> bits('n) effect pure |
