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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_STOS.txt] - Blame information for rev 6

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
 
2
3
`define CMD_STOS        #AUTOGEN_NEXT_CMD
4
 
5
`define CMDEX_STOS_STEP_0       4'd0
6
7
 
8
9
dec_ready_one && { decoder[7:1], 1'b0 } == 8'hAA
10
`CMD_STOS
11
SET(dec_cmdex, `CMDEX_STOS_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 != 2'd0
19
LOOP(`CMDEX_STOS_STEP_0);
20
21
 
22
23
IF(rd_cmd == `CMD_STOS);
24
 
25
    IF(rd_mutex_busy_eax || (rd_mutex_busy_ecx && rd_prefix_group_1_rep != 2'd0)); SET(rd_waiting); //waiting for ecx for rd_string_ignore
26
    ELSE();
27
 
28
        IF(~(rd_string_ignore));
29
            SET(rd_src_is_eax);
30
 
31
            SET(rd_req_memory);
32
            SET(rd_req_edi);
33
            //not needed -- reset after finish //IF(rd_prefix_group_1_rep != 2'd0); SET(rd_req_ecx); ENDIF();
34
        ENDIF();
35
    ENDIF();
36
ENDIF();
37
38
 
39
40
IF(exe_cmd == `CMD_STOS);
41
    SET(exe_result_push, src);
42
ENDIF();
43
44
 
45
46
IF(wr_cmd == `CMD_STOS);
47
 
48
    SET(wr_string_gp_fault_check);
49
 
50
    IF(~(wr_string_ignore));
51
        SET(wr_one_cycle_wait);
52
 
53
        IF(~(wr_string_es_fault));
54
            SET(write_string_es_virtual);
55
        ENDIF();
56
 
57
        IF(~(write_for_wr_ready)); SET(wr_waiting);
58
        ELSE();
59
            SAVE(edi, wr_edi_final);
60
            IF(wr_prefix_group_1_rep != 2'd0); SAVE(ecx, wr_ecx_final); ENDIF();
61
 
62
            IF(wr_string_finish);
63
                SET(wr_req_reset_micro);
64
                SET(wr_req_reset_rd);
65
                SET(wr_req_reset_exe);
66
            ELSE();
67
                IF(wr_prefix_group_1_rep != 2'd0);
68
                    SET(wr_not_finished);
69
 
70
                    SET(wr_string_in_progress);
71
                ENDIF();
72
            ENDIF();
73
        ENDIF();
74
    ENDIF();
75
 
76
    IF(wr_string_ignore);
77
        SET(wr_req_reset_micro);
78
        SET(wr_req_reset_rd);
79
        SET(wr_req_reset_exe);
80
    ENDIF();
81
ENDIF();
82

powered by: WebSVN 2.1.0

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