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

Subversion Repositories klc32

[/] [klc32/] [trunk/] [rtl/] [verilog/] [WRITE_FLAGS.v] - Diff between revs 10 and 12

Show entire file | Details | Blame | View Log

Rev 10 Rev 12
Line 23... Line 23...
//
//
WRITE_FLAGS:
WRITE_FLAGS:
        begin
        begin
                state <= IFETCH;
                state <= IFETCH;
                if (opcode==`CMPI || (opcode==`RR && func==`CMP)) begin
                if (opcode==`CMPI || (opcode==`RR && func==`CMP)) begin
 
                        $display("Writing flags to Cr%d",Rn[4:2]);
                        case(Rn[4:2])
                        case(Rn[4:2])
                        3'd0:   cr0 <= {nf,zf,vf,cf};
                        3'd0:   cr0 <= {nf,zf,vf,cf};
                        3'd1:   cr1 <= {nf,zf,vf,cf};
                        3'd1:   cr1 <= {nf,zf,vf,cf};
                        3'd2:   cr2 <= {nf,zf,vf,cf};
                        3'd2:   cr2 <= {nf,zf,vf,cf};
                        3'd3:   cr3 <= {nf,zf,vf,cf};
                        3'd3:   cr3 <= {nf,zf,vf,cf};

powered by: WebSVN 2.1.0

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