OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [rtl/] [cpu/] [zap_decompile.v] - Diff between revs 32 and 39

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 32 Rev 39
Line 334... Line 334...
 
 
// Mult. MUL, MLA
// Mult. MUL, MLA
task decode_mult ( input [INS_WDT-1:0] i_instruction );
task decode_mult ( input [INS_WDT-1:0] i_instruction );
begin
begin
        if ( i_instruction[21] == 1'd0 )
        if ( i_instruction[21] == 1'd0 )
                $sformat(o_decompile, "MUL%s %s,%s,%s",`CCC,`CRD,`CRB,arch_reg_num(i_instruction[11:8]));
                $sformat(o_decompile, "MUL%s %s,%s,%s",`CCC,`CRN,`CRD,arch_reg_num(i_instruction[11:8]));
        else
        else
                $sformat(o_decompile, "MUL%s %s,%s,%s",`CCC,`CRD,`CRB,arch_reg_num(i_instruction[11:8]));
                $sformat(o_decompile, "MLA%s %s,%s,%s,%s",`CCC,`CRN,`CRD,arch_reg_num(i_instruction[11:8]), arch_reg_num(i_instruction[3:0]));
end
end
endtask
endtask
 
 
`ifndef XUMULL
`ifndef XUMULL
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.