| Maintainer | hapytexeu+gh@gmail.com |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Dep.Bricks.Gate
Description
This module has functions to create gates with an arbitrary number of inputs.
Synopsis
- gateH :: Char -> Int -> Attr -> Image
- gateV :: Char -> Int -> Attr -> Image
- gate :: Char -> CircuitLayout -> Int -> Attr -> Image
- genericGate :: Char -> CircuitLayout -> [Bool] -> Bool -> Attr -> Image
- andGate :: CircuitLayout -> Int -> Attr -> Image
- andGateH :: Int -> Attr -> Image
- andGateH2 :: Attr -> Image
- andGateH3 :: Attr -> Image
- andGateV :: Int -> Attr -> Image
- andGateV2 :: Attr -> Image
- andGateV3 :: Attr -> Image
- orGate :: CircuitLayout -> Int -> Attr -> Image
- orGateH :: Int -> Attr -> Image
- orGateH2 :: Attr -> Image
- orGateH3 :: Attr -> Image
- orGateV :: Int -> Attr -> Image
- orGateV2 :: Attr -> Image
- orGateV3 :: Attr -> Image
Create generic gates
Arguments
| :: Char | The |
| -> Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
Create a gate in the horizontal direction with the given Char that specifies what type of gate it is, and the number of input wires.
Arguments
| :: Char | The |
| -> Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
Create a gate in the vertical direction with the given Char that specifies what type of gate it is, and the number of input wires.
Arguments
| :: Char | The |
| -> CircuitLayout | The given |
| -> Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
Create a gate in the given CircuitLayout with the given Char that specifies what type of gate it is, and the number of input wires.
Arguments
| :: Char | The |
| -> CircuitLayout | The |
| -> [Bool] | Specifies what wires have negators at the input side. |
| -> Bool | Specifies if the output side has a negator. |
| -> Attr | The |
| -> Image | The corresponding |
A function to create a gate with negators and the input and output.
A collection of and gates
Arguments
| :: CircuitLayout | The given |
| -> Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create and gates in a more effective way.
Arguments
| :: Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create horizontal and gates in a more effective way.
A helper function to create a horizontal and gate with two input wires.
A helper function to create a horizontal and gate with three input wires.
Arguments
| :: Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create vertical and gates in a more effective way.
A helper function to create a vertical and gate with two input wires.
A helper function to create a vertical and gate with three input wires.
A collection of or gates
Arguments
| :: CircuitLayout | The given |
| -> Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create or gates in a more effective way.
Arguments
| :: Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create horizontal or gates in a more effective way.
A helper function to create a horizontal or gate with two input wires.
A helper function to create a horizontal or gate with three input wires.
Arguments
| :: Int | The number of input wires (fan-in). |
| -> Attr | The |
| -> Image | The corresponding |
A helper function to create vertical or gates in a more effective way.
A helper function to create a vertical or gate with two input wires.