data/full_repos/permissive/181665138/verilog/capitolo_iii/Eprom.v
1: b'%Warning-WIDTH: data/full_repos/permissive/181665138/verilog/capitolo_iii/Eprom.v:42: Operator COND expects 32 bits on the Conditional True, but Conditional True\'s FUNCREF \'F\' generates 8 bits.\n                                                                                    : ... In instance Eprom\n    assign d7_d0 = (b == 1) ? F(a15_a0):\'HZZ;\n                            ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/181665138/verilog/capitolo_iii/Eprom.v:42: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s COND generates 32 bits.\n                                                                                    : ... In instance Eprom\n    assign d7_d0 = (b == 1) ? F(a15_a0):\'HZZ;\n                 ^\n%Error: Exiting due to 2 warning(s)\n'
function [7:0] F;
            input [15:0] a15_a0;
            casex(a15_a0)
                'H0000 : F = 'B00000000;
                'H0001 : F = 'B00010000;
                'H0010 : F = 'B00100000;
                'H0011 : F = 'B00110000;
                'H0100 : F = 'B01000000;
                'H0101 : F = 'B01010000;
                'H0110 : F = 'B01100000;
                'H0111 : F = 'B01110000;
                'H1000 : F = 'B10000000;
                'H1001 : F = 'B10010000;
                'H1010 : F = 'B10100000;
                'H1011 : F = 'B10110000;
                'H1100 : F = 'B11000000;
                'H1101 : F = 'B11010000;
                'H1110 : F = 'B11100000;
                'H1111 : F = 'B11110000;
            endcase
        endfunction
function [7:0] F;

            input [15:0] a15_a0;
            casex(a15_a0)
                'H0000 : F = 'B00000000;
                'H0001 : F = 'B00010000;
                'H0010 : F = 'B00100000;
                'H0011 : F = 'B00110000;
                'H0100 : F = 'B01000000;
                'H0101 : F = 'B01010000;
                'H0110 : F = 'B01100000;
                'H0111 : F = 'B01110000;
                'H1000 : F = 'B10000000;
                'H1001 : F = 'B10010000;
                'H1010 : F = 'B10100000;
                'H1011 : F = 'B10110000;
                'H1100 : F = 'B11000000;
                'H1101 : F = 'B11010000;
                'H1110 : F = 'B11100000;
                'H1111 : F = 'B11110000;
            endcase
        endfunction