Fix the resetn signal in the testbench, it is now correctly '0' for 3 ns, and after...
authorChristiaan Baaij <christiaan.baaij@gmail.com>
Thu, 20 Aug 2009 11:56:10 +0000 (13:56 +0200)
committerChristiaan Baaij <christiaan.baaij@gmail.com>
Thu, 20 Aug 2009 11:56:10 +0000 (13:56 +0200)
cλash/CLasH/VHDL/Testbench.hs

index bc23262c09b05c31efacd6f4a41f41235dadedea..2b31925c655e7bcf731a058948b66cd88f22ffc1 100644 (file)
@@ -87,7 +87,7 @@ createTestbenchArch mCycles stimuli top testent= do
   (stimuliAssigns, stimuliDecs, cycles, used) <- createStimuliAssigns mCycles stimuli (head iIds)
   let finalAssigns = (AST.CSSASm (AST.NSimple resetId AST.:<==:
                       AST.ConWforms []
-                                    (AST.Wform [AST.WformElem (AST.PrimLit "'1'") (Just $ AST.PrimLit "3 ns")])
+                                    (AST.Wform [AST.WformElem (AST.PrimLit "'0'") (Just $ AST.PrimLit "0 ns"), AST.WformElem (AST.PrimLit "'1'") (Just $ AST.PrimLit "3 ns")])
                                     Nothing)) : stimuliAssigns
   let clkProc     = createClkProc
   let arch = AST.ArchBody