URL
https://opencores.org/ocsvn/ao486/ao486/trunk
Subversion Repositories ao486
[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_NOT.txt] - Rev 2
Compare with Previous | Blame | View Log
<defines>
`define CMD_NOT #AUTOGEN_NEXT_CMD
</defines>
<decode>
dec_ready_modregrm_one && { decoder[7:1], 1'b0 } == 8'hF6 && decoder[13:11] == 3'd2
prefix_group_1_lock && `DEC_MODREGRM_IS_MOD_11
`CMD_NOT
IF(decoder[0] == 1'b0); SET(dec_is_8bit); ENDIF();
SET(consume_modregrm_one);
</decode>
<read>
IF(rd_cmd == `CMD_NOT);
// dst: reg, src: reg
IF(rd_modregrm_mod == 2'b11);
// reg, reg
SET(rd_dst_is_rm);
SET(rd_req_rm);
IF(rd_mutex_busy_modregrm_rm); SET(rd_waiting); ENDIF();
ENDIF();
// dst: memory, src: reg
IF(rd_modregrm_mod != 2'b11);
SET(rd_dst_is_memory);
SET(rd_req_memory);
IF(rd_mutex_busy_memory); SET(rd_waiting);
ELSE();
SET(read_rmw_virtual);
IF(~(read_for_rd_ready)); SET(rd_waiting); ENDIF();
ENDIF();
ENDIF();
ENDIF();
</read>
<execute>
IF(exe_cmd == `CMD_NOT);
SET(exe_result, exe_arith_not);
ENDIF();
</execute>
<write>
IF(wr_cmd == `CMD_NOT);
IF(wr_dst_is_memory && ~(write_for_wr_ready)); SET(wr_waiting); ENDIF();
SET(write_rmw_virtual, wr_dst_is_memory);
SET(write_regrm, wr_dst_is_rm);
ENDIF();
</write>