Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
- bytestring
- mtl
- transformers
- barbies ^>= 2.0.1
- barbies >= 2.0.1
- barbies-th
- containers
- array
Expand Down Expand Up @@ -71,6 +71,7 @@ ghc-options:
-fplugin GHC.TypeLits.KnownNat.Solver
-fplugin GHC.TypeLits.Normalise
-fplugin GHC.TypeLits.Extra.Solver
-freduction-depth=1024

source-dirs:
- src
Expand Down
2 changes: 1 addition & 1 deletion src/Hardware/Intel8080.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE PatternSynonyms #-}
module Hardware.Intel8080 where

import Clash.Prelude
import Clash.Prelude hiding (And)
import Clash.Annotations.BitRepresentation hiding (Value)

type Reg = Index 8
Expand Down
2 changes: 1 addition & 1 deletion src/Hardware/Intel8080/ALU.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Hardware.Intel8080.ALU (binALU, shiftRotateALU) where

import Prelude ()
import Data.Word
import Clash.Prelude
import Clash.Prelude hiding (And)
import Hardware.Intel8080

nybbles :: Value -> (Unsigned 4, Unsigned 4)
Expand Down
1 change: 1 addition & 0 deletions src/Hardware/Intel8080/CPU.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Control.Monad.State
import Control.Monad.Trans.Maybe
import Control.Monad.Except
import Control.Lens hiding (Index)
import Control.Monad (void, guard, when, unless)
import Data.Maybe (fromMaybe, isJust)
import Data.Wedge

Expand Down
1 change: 1 addition & 0 deletions src/Hardware/Intel8080/MicroCPU.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Control.Monad.State
import Control.Arrow ((&&&))
import Control.Monad.Trans.Maybe
import Control.Monad.Except
import Control.Monad (unless, when)
import Text.Printf

data FlowControl
Expand Down
2 changes: 2 additions & 0 deletions src/Hardware/Intel8080/Microcode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ pop2 =
popPC :: MicroSteps True False
popPC = pop2 >++> step INothing Jump INothing

instance NFDataX (Wedge OutAddr InAddr)

type MicroOp = (MicroInstr, Wedge OutAddr InAddr)
type Setup = Maybe InAddr
type MicroOps = [MicroOp]
Expand Down
1 change: 1 addition & 0 deletions src/Hardware/Intel8080/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Control.Monad.Trans.Maybe
import Data.Foldable (traverse_)
import Data.Bifoldable (bitraverse_)
import Control.Monad.Extra (whenM, whileM)
import Control.Monad (unless, when, void, (<=<))
import Control.Lens hiding (index)
import Data.Wedge

Expand Down
2 changes: 1 addition & 1 deletion test/test-model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Data.Char (chr)
import Test.Tasty (defaultMain, TestTree, testGroup)
import Test.Tasty.Golden (goldenVsString, findByExtension)
import System.FilePath ((<.>))
import Data.ByteString.Lazy.Builder
import Data.ByteString.Builder
import Data.ByteString.Lazy (ByteString)

run :: Bool -> IOArray Addr Value -> IO ByteString
Expand Down
2 changes: 1 addition & 1 deletion test/test-sim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Test.Tasty (defaultMain, TestTree, testGroup)
import Test.Tasty.Golden (goldenVsString, findByExtension)
import Test.QuickCheck
import System.FilePath ((<.>))
import Data.ByteString.Lazy.Builder
import Data.ByteString.Builder
import Data.ByteString.Lazy (ByteString)

run :: Bool -> IOArray Addr Value -> IO ByteString
Expand Down