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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_Jcc.txt] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
 
2
3
`define CMD_Jcc         #AUTOGEN_NEXT_CMD
4
5
 
6
7
(dec_ready_one_one && decoder[7:4] == 4'h7) || (dec_ready_2byte_imm && decoder[7:4] == 4'h8)
8
`CMD_Jcc
9
IF(~(dec_prefix_2byte)); SET(dec_is_8bit); ENDIF();
10
IF(dec_prefix_2byte); SET(consume_one_imm); ELSE(); SET(consume_one_one); ENDIF();
11
12
 
13
14
IF(exe_cmd == `CMD_Jcc);
15
    IF(exe_mutex_current[`MUTEX_EFLAGS_BIT]); SET(exe_waiting);
16
    ELSE();
17
        IF(exe_condition && exe_branch_eip > cs_limit);
18
            SET(exe_waiting);
19
            SET(exe_trigger_gp_fault); //exception GP(0)
20
        ENDIF();
21
 
22
        SET(exe_branch,         exe_condition);
23
        SET(exe_result_signals, { 4'd0, exe_condition });
24
    ENDIF();
25
ENDIF();
26
27
 
28
29
IF(wr_cmd == `CMD_Jcc);
30
    IF(result_signals[0]);
31
        // clear pipeline
32
        SET(wr_req_reset_pr);
33
        SET(wr_req_reset_dec);
34
        SET(wr_req_reset_micro);
35
        SET(wr_req_reset_rd);
36
        SET(wr_req_reset_exe);
37
    ENDIF();
38
ENDIF();
39

powered by: WebSVN 2.1.0

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