data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v
1: b"%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:12: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'fan'\n                                                                                                                         : ... In instance top_module\n            fan = 1;\n            ^~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:15: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'fan'\n                                                                                                                         : ... In instance top_module\n            fan = 0;\n            ^~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:18: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'heater'\n                                                                                                                         : ... In instance top_module\n            heater = mode;\n            ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:20: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'heater'\n                                                                                                                         : ... In instance top_module\n                heater = 1;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:21: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'fan'\n                                                                                                                         : ... In instance top_module\n                fan = 1;\n                ^~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:22: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'aircon'\n                                                                                                                         : ... In instance top_module\n                aircon = 0;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:25: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'heater'\n                                                                                                                         : ... In instance top_module\n                heater = 0;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:26: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'aircon'\n                                                                                                                         : ... In instance top_module\n                aircon = 0;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:31: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'aircon'\n                                                                                                                         : ... In instance top_module\n                aircon = 1;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:32: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'fan'\n                                                                                                                         : ... In instance top_module\n                fan = 1;\n                ^~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:33: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'heater'\n                                                                                                                         : ... In instance top_module\n                heater = 0;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:36: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'aircon'\n                                                                                                                         : ... In instance top_module\n                aircon = 0;\n                ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/199632300/HDLBits/Circuits/Combiantional_Logic/Basic_Gates/thermostat.v:37: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): 'heater'\n                                                                                                                         : ... In instance top_module\n                heater = 0;\n                ^~~~~~\n%Error: Exiting due to 13 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
module top_module (
    input too_cold,
    input too_hot,
    input mode,
    input fan_on,
    output heater,
    output aircon,
    output fan
); 
    always @(*) begin
        if(fan_on == 1) begin
            fan = 1;
        end
        else begin
            fan = 0;
        end
        if(mode == 1) begin
            heater = mode;
            if(too_cold) begin
                heater = 1;
                fan = 1;
                aircon = 0;
            end
            else begin
                heater = 0;
                aircon = 0;
            end
        end
            else begin 
            if(too_hot) begin
                aircon = 1;
                fan = 1;
                heater = 0;
            end
            else begin
                aircon = 0;
                heater = 0;
            end
        end
    end
endmodule
module top_module (
    input too_cold,
    input too_hot,
    input mode,
    input fan_on,
    output heater,
    output aircon,
    output fan
);
 
    always @(*) begin
        if(fan_on == 1) begin
            fan = 1;
        end
        else begin
            fan = 0;
        end
        if(mode == 1) begin
            heater = mode;
            if(too_cold) begin
                heater = 1;
                fan = 1;
                aircon = 0;
            end
            else begin
                heater = 0;
                aircon = 0;
            end
        end
            else begin 
            if(too_hot) begin
                aircon = 1;
                fan = 1;
                heater = 0;
            end
            else begin
                aircon = 0;
                heater = 0;
            end
        end
    end
endmodule