data/full_repos/permissive/156506242/src/music_sheet.v
1: b'%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:26: Implicit conversion of real to integer\n            0:      begin note = D4;        duration = QUARTER;         end\n                                 ^~\n                  ... Use "/* verilator lint_off REALCVT */" and lint_on around source to disable this message.\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:27: Implicit conversion of real to integer\n            1:      begin note = A3;        duration = QUARTER;      end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:28: Implicit conversion of real to integer\n            2:      begin note = D4;        duration = QUARTER;      end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:29: Implicit conversion of real to integer\n            3:      begin note = A4;        duration = HALF;            end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:30: Implicit conversion of real to integer\n            4:      begin note = G4;        duration = HALF;          end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:31: Implicit conversion of real to integer\n            5:      begin note = Fsh4;      duration = QUARTER;      end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:32: Implicit conversion of real to integer\n            6:   begin note = E4;        duration = QUARTER;         end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:33: Implicit conversion of real to integer\n            7:      begin note = Csh4;      duration = HALF;            end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:34: Implicit conversion of real to integer\n            8:      begin note = Csh4;      duration = QUARTER;      end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:36: Implicit conversion of real to integer\n            10:     begin note = Csh4;      duration = QUARTER;      end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:37: Implicit conversion of real to integer\n            11:  begin note = A3;        duration = QUARTER;      end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:38: Implicit conversion of real to integer\n            12:  begin note = Csh4;      duration = QUARTER;      end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:39: Implicit conversion of real to integer\n            13:  begin note = Fsh4;      duration = HALF;            end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:40: Implicit conversion of real to integer\n            14:  begin note = E4;        duration = HALF;          end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:41: Implicit conversion of real to integer\n            15:  begin note = Csh4;      duration = QUARTER;         end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:42: Implicit conversion of real to integer\n            16:  begin note = D4;        duration = QUARTER;         end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:43: Implicit conversion of real to integer\n            17:  begin note = Fsh4;      duration = HALF;          end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:44: Implicit conversion of real to integer\n            18:  begin note = Fsh4;      duration = QUARTER;         end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:47: Implicit conversion of real to integer\n            20:     begin note = D4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:48: Implicit conversion of real to integer\n            21:     begin note = A3;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:49: Implicit conversion of real to integer\n            22:     begin note = D4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:50: Implicit conversion of real to integer\n            23:     begin note = A4;        duration = HALF;            end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:51: Implicit conversion of real to integer\n            24:     begin note = G4;        duration = HALF;            end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:52: Implicit conversion of real to integer\n            25:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:53: Implicit conversion of real to integer\n            26:     begin note = E4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:54: Implicit conversion of real to integer\n            27:     begin note = Csh4;      duration = HALF;            end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:55: Implicit conversion of real to integer\n            28:     begin note = Csh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:57: Implicit conversion of real to integer\n            30:     begin note = Csh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:58: Implicit conversion of real to integer\n            31:     begin note = A3;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:59: Implicit conversion of real to integer\n            32:     begin note = Csh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:60: Implicit conversion of real to integer\n            33:     begin note = Fsh4;      duration = HALF;            end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:61: Implicit conversion of real to integer\n            34:     begin note = E4;        duration = HALF;            end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:62: Implicit conversion of real to integer\n            35:     begin note = Csh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:63: Implicit conversion of real to integer\n            36:     begin note = D4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:64: Implicit conversion of real to integer\n            37:     begin note = Fsh4;      duration = HALF;            end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:65: Implicit conversion of real to integer\n            38:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:68: Implicit conversion of real to integer\n            40:  begin note = Fsh4;      duration = ONE;             end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:69: Implicit conversion of real to integer\n            41:     begin note = A4;        duration = ONE;             end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:70: Implicit conversion of real to integer\n            42:     begin note = G4;        duration = QUARTER;      end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:71: Implicit conversion of real to integer\n            43:     begin note = A4;        duration = QUARTER;      end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:72: Implicit conversion of real to integer\n            44:     begin note = G4;        duration = QUARTER;      end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:73: Implicit conversion of real to integer\n            45:  begin note = Fsh4;      duration = QUARTER;      end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:74: Implicit conversion of real to integer\n            46:  begin note = E4;        duration = ONE;          end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:75: Implicit conversion of real to integer\n            47:  begin note = Csh4;      duration = ONE;          end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:76: Implicit conversion of real to integer\n            48:  begin note = E4;        duration = ONE;          end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:77: Implicit conversion of real to integer\n            49:  begin note = Fsh4;      duration = QUARTER;      end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:78: Implicit conversion of real to integer\n            50:  begin note = G4;        duration = QUARTER;      end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:79: Implicit conversion of real to integer\n            51:  begin note = Fsh4;      duration = QUARTER;      end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:80: Implicit conversion of real to integer\n            52:  begin note = E4;        duration = QUARTER;      end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:81: Implicit conversion of real to integer\n            53:  begin note = D4;        duration = ONE;          end\n                              ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:83: Implicit conversion of real to integer\n            54:  begin note = Fsh4;      duration = ONE;             end\n                              ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:84: Implicit conversion of real to integer\n            55:     begin note = A4;        duration = ONE;             end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:85: Implicit conversion of real to integer\n            56:     begin note = G4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:86: Implicit conversion of real to integer\n            57:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:87: Implicit conversion of real to integer\n            58:     begin note = G4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:88: Implicit conversion of real to integer\n            59:     begin note = A4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:89: Implicit conversion of real to integer\n            60:     begin note = B4;        duration = ONE;             end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:90: Implicit conversion of real to integer\n            61:     begin note = A4;        duration = HALF;            end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:91: Implicit conversion of real to integer\n            62:     begin note = G4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:92: Implicit conversion of real to integer\n            63:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:93: Implicit conversion of real to integer\n            64:     begin note = G4;        duration = ONE;             end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:94: Implicit conversion of real to integer\n            65:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:95: Implicit conversion of real to integer\n            66:     begin note = G4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:96: Implicit conversion of real to integer\n            67:     begin note = Fsh4;      duration = QUARTER;         end\n                                 ^~~~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:97: Implicit conversion of real to integer\n            68:     begin note = E4;        duration = QUARTER;         end\n                                 ^~\n%Warning-REALCVT: data/full_repos/permissive/156506242/src/music_sheet.v:98: Implicit conversion of real to integer\n            69:     begin note = D4;        duration = ONE;             end\n                                 ^~\n%Error: Exiting due to 66 warning(s)\n'
module music_sheet( 
    input [9:0] number, 
	output reg [19:0] note,
	output reg [4:0] duration
	);
	parameter   EIGHTH = 5'b00001;
    parameter   QUARTER = 5'b00010;
    parameter	HALF = 5'b00100;
    parameter	ONE = 2 * HALF;
    parameter	TWO = 2 * ONE;
    parameter	FOUR = 2 * TWO;
    parameter   A3 = 50_000_000 / 440.00,
                Csh4 = 50_000_000 / 554.37, 
                D4 = 50_000_000 / 587.33, 
                E4 = 50_000_000 / 659.25, 
                Fsh4 = 50_000_000 / 739.99, 
                G4 = 50_000_000 / 783.99,
                A4 = 50_000_000 / 880.00,
                B4 = 50_000_000 / 987.84,
                SP = 1;  
     
    always @ (number) begin
        case(number)
            0: 	    begin note = D4;        duration = QUARTER;         end
            1: 	    begin note = A3;        duration = QUARTER; 	    end
            2: 	    begin note = D4;        duration = QUARTER; 	    end
            3: 	    begin note = A4;        duration = HALF;            end
            4: 	    begin note = G4;        duration = HALF; 	        end
            5: 	    begin note = Fsh4;      duration = QUARTER; 	    end
            6:  	begin note = E4;        duration = QUARTER;         end
            7: 	    begin note = Csh4;      duration = HALF;            end
            8: 	    begin note = Csh4;      duration = QUARTER; 	    end
            9: 	    begin note = SP;        duration = ONE; 	        end
            10:     begin note = Csh4;      duration = QUARTER; 	    end
            11: 	begin note = A3;        duration = QUARTER; 	    end
            12: 	begin note = Csh4;      duration = QUARTER; 	    end
            13: 	begin note = Fsh4;      duration = HALF;            end
            14: 	begin note = E4;        duration = HALF; 	        end
            15: 	begin note = Csh4;      duration = QUARTER;         end
            16: 	begin note = D4;        duration = QUARTER;         end
            17: 	begin note = Fsh4;      duration = HALF; 	        end
            18: 	begin note = Fsh4;      duration = QUARTER;         end
            19: 	begin note = SP;        duration = ONE; 	        end
            
            20:     begin note = D4;        duration = QUARTER;         end
            21:     begin note = A3;        duration = QUARTER;         end
            22:     begin note = D4;        duration = QUARTER;         end
            23:     begin note = A4;        duration = HALF;            end
            24:     begin note = G4;        duration = HALF;            end
            25:     begin note = Fsh4;      duration = QUARTER;         end
            26:     begin note = E4;        duration = QUARTER;         end
            27:     begin note = Csh4;      duration = HALF;            end
            28:     begin note = Csh4;      duration = QUARTER;         end
            29:     begin note = SP;        duration = ONE;             end
            30:     begin note = Csh4;      duration = QUARTER;         end
            31:     begin note = A3;        duration = QUARTER;         end
            32:     begin note = Csh4;      duration = QUARTER;         end
            33:     begin note = Fsh4;      duration = HALF;            end
            34:     begin note = E4;        duration = HALF;            end
            35:     begin note = Csh4;      duration = QUARTER;         end
            36:     begin note = D4;        duration = QUARTER;         end
            37:     begin note = Fsh4;      duration = HALF;            end
            38:     begin note = Fsh4;      duration = QUARTER;         end
            39:     begin note = SP;        duration = ONE;             end
            
            40: 	begin note = Fsh4;      duration = ONE;             end
            41:     begin note = A4;        duration = ONE;             end
            42:     begin note = G4;        duration = QUARTER; 	    end
            43:     begin note = A4;        duration = QUARTER; 	    end
            44:     begin note = G4;        duration = QUARTER; 	    end
            45: 	begin note = Fsh4;      duration = QUARTER; 	    end
            46: 	begin note = E4;        duration = ONE; 	        end
            47: 	begin note = Csh4;      duration = ONE; 	        end
            48: 	begin note = E4;        duration = ONE; 	        end
            49: 	begin note = Fsh4;      duration = QUARTER; 	    end
            50: 	begin note = G4;        duration = QUARTER; 	    end
            51: 	begin note = Fsh4;      duration = QUARTER; 	    end
            52: 	begin note = E4;        duration = QUARTER; 	    end
            53: 	begin note = D4;        duration = ONE; 	        end
                        
            54: 	begin note = Fsh4;      duration = ONE;             end
            55:     begin note = A4;        duration = ONE;             end
            56:     begin note = G4;        duration = QUARTER;         end
            57:     begin note = Fsh4;      duration = QUARTER;         end
            58:     begin note = G4;        duration = QUARTER;         end
            59:     begin note = A4;        duration = QUARTER;         end
            60:     begin note = B4;        duration = ONE;             end
            61:     begin note = A4;        duration = HALF;            end
            62:     begin note = G4;        duration = QUARTER;         end
            63:     begin note = Fsh4;      duration = QUARTER;         end
            64:     begin note = G4;        duration = ONE;             end
            65:     begin note = Fsh4;      duration = QUARTER;         end
            66:     begin note = G4;        duration = QUARTER;         end
            67:     begin note = Fsh4;      duration = QUARTER;         end
            68:     begin note = E4;        duration = QUARTER;         end
            69:     begin note = D4;        duration = ONE;             end
            
            default: 	begin note = SP;    duration = ONE; 	        end
        endcase
    end
endmodule
module music_sheet( 
    input [9:0] number, 
	output reg [19:0] note,
	output reg [4:0] duration
	);

	parameter   EIGHTH = 5'b00001;
    parameter   QUARTER = 5'b00010;
    parameter	HALF = 5'b00100;
    parameter	ONE = 2 * HALF;
    parameter	TWO = 2 * ONE;
    parameter	FOUR = 2 * TWO;
    parameter   A3 = 50_000_000 / 440.00,
                Csh4 = 50_000_000 / 554.37, 
                D4 = 50_000_000 / 587.33, 
                E4 = 50_000_000 / 659.25, 
                Fsh4 = 50_000_000 / 739.99, 
                G4 = 50_000_000 / 783.99,
                A4 = 50_000_000 / 880.00,
                B4 = 50_000_000 / 987.84,
                SP = 1;  
     
    always @ (number) begin
        case(number)
            0: 	    begin note = D4;        duration = QUARTER;         end
            1: 	    begin note = A3;        duration = QUARTER; 	    end
            2: 	    begin note = D4;        duration = QUARTER; 	    end
            3: 	    begin note = A4;        duration = HALF;            end
            4: 	    begin note = G4;        duration = HALF; 	        end
            5: 	    begin note = Fsh4;      duration = QUARTER; 	    end
            6:  	begin note = E4;        duration = QUARTER;         end
            7: 	    begin note = Csh4;      duration = HALF;            end
            8: 	    begin note = Csh4;      duration = QUARTER; 	    end
            9: 	    begin note = SP;        duration = ONE; 	        end
            10:     begin note = Csh4;      duration = QUARTER; 	    end
            11: 	begin note = A3;        duration = QUARTER; 	    end
            12: 	begin note = Csh4;      duration = QUARTER; 	    end
            13: 	begin note = Fsh4;      duration = HALF;            end
            14: 	begin note = E4;        duration = HALF; 	        end
            15: 	begin note = Csh4;      duration = QUARTER;         end
            16: 	begin note = D4;        duration = QUARTER;         end
            17: 	begin note = Fsh4;      duration = HALF; 	        end
            18: 	begin note = Fsh4;      duration = QUARTER;         end
            19: 	begin note = SP;        duration = ONE; 	        end
            
            20:     begin note = D4;        duration = QUARTER;         end
            21:     begin note = A3;        duration = QUARTER;         end
            22:     begin note = D4;        duration = QUARTER;         end
            23:     begin note = A4;        duration = HALF;            end
            24:     begin note = G4;        duration = HALF;            end
            25:     begin note = Fsh4;      duration = QUARTER;         end
            26:     begin note = E4;        duration = QUARTER;         end
            27:     begin note = Csh4;      duration = HALF;            end
            28:     begin note = Csh4;      duration = QUARTER;         end
            29:     begin note = SP;        duration = ONE;             end
            30:     begin note = Csh4;      duration = QUARTER;         end
            31:     begin note = A3;        duration = QUARTER;         end
            32:     begin note = Csh4;      duration = QUARTER;         end
            33:     begin note = Fsh4;      duration = HALF;            end
            34:     begin note = E4;        duration = HALF;            end
            35:     begin note = Csh4;      duration = QUARTER;         end
            36:     begin note = D4;        duration = QUARTER;         end
            37:     begin note = Fsh4;      duration = HALF;            end
            38:     begin note = Fsh4;      duration = QUARTER;         end
            39:     begin note = SP;        duration = ONE;             end
            
            40: 	begin note = Fsh4;      duration = ONE;             end
            41:     begin note = A4;        duration = ONE;             end
            42:     begin note = G4;        duration = QUARTER; 	    end
            43:     begin note = A4;        duration = QUARTER; 	    end
            44:     begin note = G4;        duration = QUARTER; 	    end
            45: 	begin note = Fsh4;      duration = QUARTER; 	    end
            46: 	begin note = E4;        duration = ONE; 	        end
            47: 	begin note = Csh4;      duration = ONE; 	        end
            48: 	begin note = E4;        duration = ONE; 	        end
            49: 	begin note = Fsh4;      duration = QUARTER; 	    end
            50: 	begin note = G4;        duration = QUARTER; 	    end
            51: 	begin note = Fsh4;      duration = QUARTER; 	    end
            52: 	begin note = E4;        duration = QUARTER; 	    end
            53: 	begin note = D4;        duration = ONE; 	        end
                        
            54: 	begin note = Fsh4;      duration = ONE;             end
            55:     begin note = A4;        duration = ONE;             end
            56:     begin note = G4;        duration = QUARTER;         end
            57:     begin note = Fsh4;      duration = QUARTER;         end
            58:     begin note = G4;        duration = QUARTER;         end
            59:     begin note = A4;        duration = QUARTER;         end
            60:     begin note = B4;        duration = ONE;             end
            61:     begin note = A4;        duration = HALF;            end
            62:     begin note = G4;        duration = QUARTER;         end
            63:     begin note = Fsh4;      duration = QUARTER;         end
            64:     begin note = G4;        duration = ONE;             end
            65:     begin note = Fsh4;      duration = QUARTER;         end
            66:     begin note = G4;        duration = QUARTER;         end
            67:     begin note = Fsh4;      duration = QUARTER;         end
            68:     begin note = E4;        duration = QUARTER;         end
            69:     begin note = D4;        duration = ONE;             end
            
            default: 	begin note = SP;    duration = ONE; 	        end
        endcase
    end
endmodule