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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_PUSHA.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_PUSHA       #AUTOGEN_NEXT_CMD
4
 
5
`define CMDEX_PUSHA_STEP_0  4'd0
6
`define CMDEX_PUSHA_STEP_1  4'd1
7
`define CMDEX_PUSHA_STEP_2  4'd2
8
`define CMDEX_PUSHA_STEP_3  4'd3
9
`define CMDEX_PUSHA_STEP_4  4'd4
10
`define CMDEX_PUSHA_STEP_5  4'd5
11
`define CMDEX_PUSHA_STEP_6  4'd6
12
`define CMDEX_PUSHA_STEP_7  4'd7
13
14
 
15
16
dec_ready_one && decoder[7:0] == 8'h60
17
`CMD_PUSHA
18
SET(dec_cmdex, `CMDEX_PUSHA_STEP_0);
19
SET(consume_one);
20
SET(dec_is_complex);
21
22
 
23
24
IF(mc_cmd == `CMD_PUSHA && mc_step < 6'd7);
25
    DIRECT(mc_cmd, mc_step[3:0]);
26
ENDIF();
27
 
28
IF(mc_cmd == `CMD_PUSHA && mc_step == 6'd7);
29
    LAST(`CMDEX_PUSHA_STEP_7);
30
ENDIF();
31
32
 
33
34
IF(rd_cmd == `CMD_PUSHA);
35
 
36
    SET(rd_src_is_cmdex);
37
 
38
    SET(rd_req_esp);
39
    SET(rd_req_memory);
40
 
41
    IF((rd_cmdex == `CMDEX_PUSHA_STEP_0 && rd_mutex_busy_eax) || (rd_cmdex == `CMDEX_PUSHA_STEP_1 && rd_mutex_busy_ecx) || (rd_cmdex == `CMDEX_PUSHA_STEP_2 && rd_mutex_busy_edx)); SET(rd_waiting); ENDIF();
42
ENDIF();
43
44
 
45
46
IF(exe_cmd == `CMD_PUSHA);
47
 
48
    IF(exe_cmdex[2:0] == 3'd4);
49
        SET(exe_result_push, wr_esp_prev);
50
    ELSE();
51
        SET(exe_result_push, src);
52
    ENDIF();
53
 
54
    IF(exe_mutex_current[`MUTEX_ESP_BIT]); SET(exe_waiting); ENDIF();
55
ENDIF();
56
57
 
58
59
IF(wr_cmd == `CMD_PUSHA);
60
 
61
    SET(wr_push_ss_fault_check);
62
    SET(wr_one_cycle_wait);
63
 
64
    IF(~(write_for_wr_ready)); SET(wr_waiting); ENDIF();
65
 
66
    IF(wr_cmdex[2:0] == 3'd0); SET(wr_make_esp_speculative); ENDIF();
67
 
68
    IF(wr_cmdex[2:0] < 3'd7);
69
        SET(wr_not_finished);
70
    ENDIF();
71
 
72
    IF(~(wr_push_ss_fault));
73
        SET(write_stack_virtual);
74
        SAVE(esp, wr_stack_esp);
75
    ENDIF();
76
 
77
    IF(wr_cmdex[2:0] == 3'd7 && write_for_wr_ready && ~(wr_push_ss_fault));
78
        SET(wr_make_esp_commit);
79
    ENDIF();
80
 
81
ENDIF();
82

powered by: WebSVN 2.1.0

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