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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [rtl/] [ao486/] [commands/] [CMD_OUT.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_OUT         #AUTOGEN_NEXT_CMD
4
 
5
`define CMDEX_OUT_imm           4'd0
6
`define CMDEX_OUT_dx            4'd1
7
 
8
`define CMDEX_OUT_protected     4'd2
9
 
10
`define CMDEX_OUT_idle          4'd3
11
12
 
13
14
(dec_ready_one && { decoder[7:1], 1'b0 } == 8'hEE) || (dec_ready_one_one && { decoder[7:1], 1'b0 } == 8'hE6)
15
`CMD_OUT
16
IF(decoder[3]); SET(dec_cmdex, `CMDEX_OUT_dx); ELSE(); SET(dec_cmdex, `CMDEX_OUT_imm); ENDIF();
17
IF(decoder[0] == 1'b0); SET(dec_is_8bit); ENDIF();
18
IF(decoder[3] == 1'b1); SET(consume_one); ELSE(); SET(consume_one_one); ENDIF();
19
SET(dec_is_complex);
20
21
 
22
23
IF(mc_cmd == `CMD_OUT && (mc_cmdex_last == `CMDEX_OUT_imm || mc_cmdex_last == `CMDEX_OUT_dx) && ~(io_allow_check_needed));
24
    LOOP(`CMDEX_OUT_idle);
25
ENDIF();
26
 
27
IF(mc_cmd == `CMD_OUT && (mc_cmdex_last == `CMDEX_OUT_imm || mc_cmdex_last == `CMDEX_OUT_dx) && io_allow_check_needed);
28
    CALL(`CMDEX_io_allow_1);
29
    `CMDEX_OUT_protected
30
    LOOP(`CMDEX_OUT_idle);
31
ENDIF();
32
33
 
34
35
IF(rd_cmd == `CMD_OUT); // all CMDEX
36
 
37
    SET(rd_src_is_eax);
38
 
39
    IF(rd_mutex_busy_eax); SET(rd_waiting); ENDIF();
40
ENDIF();
41
42
 
43
44
IF(exe_cmd == `CMD_OUT && (exe_cmdex == `CMDEX_OUT_dx || exe_cmdex == `CMDEX_OUT_imm));
45
 
46
    SET(exe_result_push, src);
47
 
48
    IF(exe_cmdex == `CMDEX_OUT_dx && exe_mutex_current[`MUTEX_EDX_BIT]); SET(exe_waiting);
49
    ELSE();
50
        SET(exe_glob_param_1_set);
51
        SET(exe_glob_param_1_value, (exe_cmdex == `CMDEX_OUT_dx)? { 16'd0, edx[15:0] } : { 24'd0, exe_decoder[15:8] });
52
    ENDIF();
53
ENDIF();
54
55
 
56
57
IF(exe_cmd == `CMD_OUT && exe_cmdex == `CMDEX_OUT_protected);
58
    SET(exe_result_push, src);
59
ENDIF();
60
61
 
62
63
IF(wr_cmd == `CMD_OUT); // all CMDEX
64
 
65
    IF(~(io_allow_check_needed) || wr_cmdex == `CMDEX_OUT_protected);
66
 
67
        SET(write_io);
68
 
69
        IF(~(write_io_for_wr_ready)); SET(wr_waiting);
70
        ELSE();
71
            // reset pipeline
72
            SET(wr_req_reset_micro);
73
            SET(wr_req_reset_rd);
74
            SET(wr_req_reset_exe);
75
        ENDIF();
76
    ELSE();
77
        SET(wr_not_finished);
78
    ENDIF();
79
ENDIF();
80

powered by: WebSVN 2.1.0

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