W
watabe112
Guest
může u zkontrolujte prosím můj kód .... je to správné nebo ne ....... Modul IEEE_754 (vstup [03:00] skóre, výstup reg [31:0] fp); Vždy @ (*) věci (skóre) 4'b0000: fp = 32'b00000000000000000000000000000000; 4'b0001: fp = 32'b00111111100000000000000000000000; 4'b0010: fp = 32'b01000000000000000000000000000000; 4'b0011: fp = 32'b01000000010000000000000000000000; 4'b0100: fp = 32'b01000000100000000000000000000000; 4'b0101: fp = 32'b01000000101000000000000000000000; 4'b0110: fp = 32'b01000000110000000000000000000000; 4'b0111: fp = 32'b01000000111000000000000000000000; 4'b1000: fp = 32'b01000001000000000000000000000000; 4'b1001: fp = 32'b01000001000100000000000000000000; 4'b1010: fp = 32'b01000001001000000000000000000000; 4'b1011: fp = 32'b01000001001100000000000000000000; 4'b1100: fp = 32'b01000001010000000000000000000000; 4'b1101: fp = 32'b01000001010100000000000000000000; 4'b1110: fp = 32'b01000001011000000000000000000000; 4'b1111: fp = 32'b01000001011100000000000000000000; endcase endmodule