X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;h=ec486e60afdb2e1f276a87a4b2336cd326f4ad84;hb=08a90c89cb1799a3a0d278716ef1831bfae02e38;hp=c2810d5b397af025816fa3e0ed5a87e95163ab0d;hpb=47ddee9164d57c6924b9b6e6592ed82f243547c7;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index c2810d5..ec486e6 100644 --- a/Adders.hs +++ b/Adders.hs @@ -18,6 +18,10 @@ wire a = a inv :: Bit -> Bit inv a = hwnot a +-- Not really an adder either, but a slightly more complex example +invinv :: Bit -> Bit +invinv a = hwnot (hwnot a) + -- Combinatoric stateless no-carry adder -- A -> B -> S no_carry_adder :: (Bit, Bit) -> Bit