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

Subversion Repositories ao486

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

Compare with Previous | Blame | View Log


<defines>
`define CMD_HLT         #AUTOGEN_NEXT_CMD

`define CMDEX_HLT_STEP_0    4'd0
</defines>

<decode>
dec_ready_one && decoder[7:0] == 8'hF4
`CMD_HLT
SET(dec_cmdex, `CMDEX_HLT_STEP_0);
SET(consume_one);
SET(dec_is_complex);
</decode>

<microcode>
LOOP(`CMDEX_HLT_STEP_0);
</microcode>

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

<write>
IF(wr_cmd == `CMD_HLT && wr_cmdex == `CMDEX_HLT_STEP_0);
    SET(wr_hlt_in_progress);

    SET(wr_not_finished);
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.