File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -666,6 +666,7 @@ runClashTest = defaultMain
666
666
, runTest " T2831" def{hdlLoad= [] ,hdlSim= [] ,hdlTargets= [VHDL ]}
667
667
, runTest " T2839" def{hdlLoad= [] ,hdlSim= [] ,hdlTargets= [VHDL ]}
668
668
, runTest " T2845" def{hdlSim= [] ,hdlTargets= [Verilog ]}
669
+ , runTest " T2904" def
669
670
] <>
670
671
if compiledWith == Cabal then
671
672
-- This tests fails without environment files present, which are only
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
2
+
3
+ module T2904 where
4
+
5
+ import Clash.Prelude
6
+ import Clash.Explicit.Testbench
7
+
8
+ topEntity :: Vec 3 (Index 3 )
9
+ topEntity = case indicesI @ 3 of
10
+ (Cons x xs) -> Cons maxBound xs
11
+ {-# CLASH_OPAQUE topEntity #-}
12
+
13
+ testBench :: Signal System Bool
14
+ testBench = done
15
+ where
16
+ done = outputVerifier' clk rst ((maxBound :> 1 :> 2 :> Nil ) :> Nil ) (pure topEntity)
17
+ clk = tbSystemClockGen (not <$> done)
18
+ rst = systemResetGen
19
+ {-# CLASH_OPAQUE testBench #-}
You can’t perform that action at this time.
0 commit comments