forked from standardsemiconductor/lion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'standardsemiconductor:main' into main
- Loading branch information
Showing
17 changed files
with
151 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{-# LANGUAGE CPP #-} | ||
|
||
{-| | ||
Module : Lion.Instruction | ||
Description : RISC-V ISA | ||
|
@@ -8,7 +10,11 @@ Maintainer : [email protected] | |
|
||
module Lion.Instruction where | ||
|
||
#if __GLASGOW_HASKELL__ > 902 | ||
import Clash.Prelude hiding (Xor(Xor), And(And)) | ||
#else | ||
import Clash.Prelude | ||
#endif | ||
import Data.Function ( on ) | ||
|
||
data Exception = IllegalInstruction | ||
|
@@ -26,7 +32,7 @@ data WbInstr = WbRegWr (Unsigned 5) (BitVector 32) | |
-- | Memory pipeline instruction | ||
data MeInstr = MeRegWr (Unsigned 5) | ||
| MeJump (Unsigned 5) (BitVector 32) | ||
| MeBranch | ||
| MeBranch | ||
| MeStore (BitVector 32) (BitVector 4) (BitVector 32) | ||
| MeLoad Load (Unsigned 5) (BitVector 32) (BitVector 4) | ||
| MeNop | ||
|
@@ -155,7 +161,7 @@ parseInstr i = case i of | |
|
||
immI :: BitVector 32 | ||
immI = signExtend $ slice d31 d20 i | ||
|
||
immS :: BitVector 32 | ||
immS = signExtend $ slice d31 d25 i ++# slice d11 d7 i | ||
|
||
|
@@ -164,7 +170,7 @@ parseInstr i = case i of | |
|
||
immU :: BitVector 32 | ||
immU = slice d31 d12 i ++# 0 | ||
|
||
immJ :: BitVector 32 | ||
immJ = signExtend (slice d31 d31 i ++# slice d19 d12 i ++# slice d20 d20 i ++# slice d30 d25 i ++# slice d24 d21 i) `shiftL` 1 | ||
|
||
|
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
File renamed without changes.
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
Oops, something went wrong.