ConstantBoolean.emam 219 Bytes
Newer Older
Malte Heithoff's avatar
Malte Heithoff committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package de.rwth.pacman.common;

component ConstantBoolean<N1 n> {
    ports
        out B out1;
    
    implementation Math {
        if n==0
            out1 = 0;
        else
            out1 = 1;
        end
    }
}