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

Subversion Repositories ao486

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
 
2
3
`define CMD_JCXZ        #AUTOGEN_NEXT_CMD
4
5
 
6
7
dec_ready_one_one && decoder[7:0] == 8'hE3
8
`CMD_JCXZ
9
SET(dec_is_8bit);
10
SET(consume_one_one);
11
12
 
13
14
wire exe_jecxz_condition;
15
 
16
assign exe_jecxz_condition = (exe_address_16bit)? ecx[15:0] == 16'd0 : ecx == 32'd0;
17
18
 
19
20
IF(exe_cmd == `CMD_JCXZ);
21
    IF(exe_mutex_current[`MUTEX_ECX_BIT]); SET(exe_waiting);
22
    ELSE();
23
 
24
        IF(exe_jecxz_condition && exe_branch_eip > cs_limit);
25
            SET(exe_waiting);
26
            SET(exe_trigger_gp_fault); //exception GP(0)
27
        ENDIF();
28
 
29
        SET(exe_branch,         exe_jecxz_condition);
30
        SET(exe_result_signals, { 4'd0, exe_jecxz_condition });
31
    ENDIF();
32
ENDIF();
33
34
 
35
36
IF(wr_cmd == `CMD_JCXZ);
37
    IF(result_signals[0]);
38
        // clear pipeline
39
        SET(wr_req_reset_pr);
40
        SET(wr_req_reset_dec);
41
        SET(wr_req_reset_micro);
42
        SET(wr_req_reset_rd);
43
        SET(wr_req_reset_exe);
44
    ENDIF();
45
ENDIF();
46

powered by: WebSVN 2.1.0

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