1 module HighOrdAlu where
3 import Prelude hiding (
4 null, length, head, tail, last, init, take, drop, (++), map, foldl, foldr,
5 zipWith, zip, unzip, concat, reverse, iterate )
8 import Data.Param.TFVec
11 constant :: e -> Op D4 e
13 e +> (e +> (e +> (singleton e )))
23 andop a b = zipWith xand a b
25 type Op n e = (TFVec n e -> TFVec n e -> TFVec n e)
28 alu :: Op n e -> Op n e -> Opcode -> TFVec n e -> TFVec n e -> TFVec n e
34 actual_alu :: Opcode -> TFVec D4 Bit -> TFVec D4 Bit -> TFVec D4 Bit
35 actual_alu = alu (constant Low) andop