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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_CLTS.txt] - Rev 2

Compare with Previous | Blame | View Log


<defines>
`define CMD_CLTS        #AUTOGEN_NEXT_CMD

`define CMDEX_CLTS_STEP_FIRST   4'd0
`define CMDEX_CLTS_STEP_LAST    4'd1
</defines>

<decode>
dec_ready_2byte_one && decoder[7:0] == 8'h06
`CMD_CLTS
SET(dec_cmdex,`CMDEX_CLTS_STEP_FIRST);
SET(consume_one);
SET(dec_is_complex);
</decode>

<microcode>
`CMDEX_CLTS_STEP_FIRST
LOOP(`CMDEX_CLTS_STEP_LAST);
</microcode>


<execute>
IF(exe_cmd == `CMD_CLTS);
    IF(cpl > 2'd0);
        SET(exe_waiting);
        SET(exe_trigger_gp_fault); //exception GP(0)
    ENDIF(); 
ENDIF();
</execute>

<write>
IF(wr_cmd == `CMD_CLTS);
    
    SAVE(cr0_ts, `FALSE);
    
    // every modification to cr0 clears the pipeline
    SET(wr_req_reset_micro);
    SET(wr_req_reset_rd);
    SET(wr_req_reset_exe);
ENDIF();
</write>

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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