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

Subversion Repositories ao486

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

Compare with Previous | Blame | View Log


<defines>
`define CMD_SALC        #AUTOGEN_NEXT_CMD

`define CMDEX_SALC_STEP_0   4'd0
</defines>


<decode>
dec_ready_one && decoder[7:0] == 8'hD6
`CMD_SALC
SET(dec_cmdex, `CMDEX_SALC_STEP_0);
SET(consume_one);
</decode>

<read>
IF(rd_cmd == `CMD_SALC && rd_cmdex == `CMDEX_SALC_STEP_0);
            
    // no need to wait for eflags(cflag), because use of eflags in write stage
        
    SET(rd_req_eax);
ENDIF();
</read>

<write>
IF(wr_cmd == `CMD_SALC && wr_cmdex == `CMDEX_SALC_STEP_0);
    
    IF(cflag); SAVE(eax, { eax[31:8], 8'hFF });
    ELSE();    SAVE(eax, { eax[31:8], 8'h00 });
    ENDIF();
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.