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

Subversion Repositories ao486

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
 
2
3
`define CMD_MOVS        #AUTOGEN_NEXT_CMD
4
 
5
`define CMDEX_MOVS_STEP_0   4'd0
6
7
 
8
9
dec_ready_one && { decoder[7:1], 1'b0 } == 8'hA4
10
`CMD_MOVS
11
SET(dec_cmdex, `CMDEX_MOVS_STEP_0);
12
IF(decoder[0] == 1'b0); SET(dec_is_8bit); ENDIF();
13
SET(consume_one);
14
IF(dec_prefix_group_1_rep != 2'd0); SET(dec_is_complex); ENDIF();
15
16
 
17
18
//complex instruction only if: dec_prefix_group_1_rep != 2'd0
19
LOOP(`CMDEX_MOVS_STEP_0);
20
21
 
22
23
IF(rd_cmd == `CMD_MOVS);
24
 
25
    SET(address_esi); // 5 cycle delay
26
 
27
    //waiting for esi in 'address_waiting'
28
 
29
    IF(rd_mutex_busy_memory || (rd_mutex_busy_ecx && rd_prefix_group_1_rep != 2'd0)); SET(rd_waiting); //waiting for ecx for rd_string_ignore
30
    ELSE();
31
 
32
        IF(~(rd_string_ignore));
33
            SET(rd_src_is_memory);
34
 
35
            SET(rd_req_memory);
36
            SET(rd_req_esi);
37
            SET(rd_req_edi);
38
            //not needed -- reset after finish //IF(rd_prefix_group_1_rep != 2'd0); SET(rd_req_ecx); ENDIF();
39
 
40
            SET(read_virtual);
41
 
42
            IF(~(read_for_rd_ready)); SET(rd_waiting); ENDIF();
43
        ENDIF();
44
    ENDIF();
45
ENDIF();
46
47
 
48
49
IF(exe_cmd == `CMD_MOVS);
50
    SET(exe_result_push, src);
51
ENDIF();
52
53
 
54
55
IF(wr_cmd == `CMD_MOVS);
56
 
57
    SET(wr_string_gp_fault_check);
58
 
59
    IF(~(wr_string_ignore));
60
        SET(wr_one_cycle_wait);
61
 
62
        IF(~(wr_string_es_fault));
63
            SET(write_string_es_virtual);
64
        ENDIF();
65
 
66
        IF(~(write_for_wr_ready)); SET(wr_waiting);
67
        ELSE();
68
            SAVE(esi, wr_esi_final);
69
            SAVE(edi, wr_edi_final);
70
            IF(wr_prefix_group_1_rep != 2'd0); SAVE(ecx, wr_ecx_final); ENDIF();
71
 
72
            IF(wr_string_finish);
73
                SET(wr_req_reset_micro);
74
                SET(wr_req_reset_rd);
75
                SET(wr_req_reset_exe);
76
            ELSE();
77
                IF(wr_prefix_group_1_rep != 2'd0);
78
                    SET(wr_not_finished);
79
 
80
                    SET(wr_string_in_progress);
81
                ENDIF();
82
            ENDIF();
83
        ENDIF();
84
    ENDIF();
85
 
86
    IF(wr_string_ignore);
87
        SET(wr_req_reset_micro);
88
        SET(wr_req_reset_rd);
89
        SET(wr_req_reset_exe);
90
    ENDIF();
91
ENDIF();
92

powered by: WebSVN 2.1.0

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