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

component BoolToNumber {
    ports
        in B in1,
        out N1 out1;
    
    implementation Math {
        if in1==0
            out1 = 0;
        else 
            out1 = 1;
        end
    }
}