File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
core/src/main/scala/dfhdl/core Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ final class DFRange[P](val irValue: ir.DFRange | DFError) extends AnyVal with DF
11
11
throw new IllegalArgumentException (
12
12
" foreach is not meant to be run directly, the DFHDL compiler plugin should have replaced its call."
13
13
)
14
- def withFilter (f : DFValOf [DFInt32 ] => DFValOf [DFBool ]): DFRange [P ] = ???
14
+ def withFilter (f : DFValOf [DFInt32 ] => DFValOf [DFBoolOrBit ]): DFRange [P ] =
15
+ throw new IllegalArgumentException (
16
+ " withFilter is not meant to be run directly, the DFHDL compiler plugin should have replaced its call."
17
+ )
15
18
def by [SP ](step : DFValTP [DFInt32 , SP ])(using dfc : DFC ): DFRange [P | SP ] =
16
19
import dfc .getSet
17
20
this .asIR.stepRef.get.replaceMemberWith(step.asIR)
18
21
this .asInstanceOf [DFRange [P | SP ]]
22
+ end DFRange
19
23
object DFRange :
20
24
extension (range : ir.DFRange ) def asFE [P ]: DFRange [P ] = new DFRange [P ](range)
21
25
extension (range : DFRange [? ]) def asFE [P ]: DFRange [P ] = range.asInstanceOf [DFRange [P ]]
You can’t perform that action at this time.
0 commit comments