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

Subversion Repositories ao486

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
 
2
3
`define CMD_CPUID           #AUTOGEN_NEXT_CMD
4
 
5
`define CMDEX_CPUID_STEP_LAST   4'd0
6
7
 
8
9
dec_ready_2byte_one && decoder[7:0] == 8'hA2
10
`CMD_CPUID
11
SET(dec_cmdex, `CMDEX_CPUID_STEP_LAST);
12
SET(consume_one);
13
SET(dec_is_complex);
14
15
 
16
17
LOOP(`CMDEX_CPUID_STEP_LAST);
18
19
 
20
21
IF(rd_cmd == `CMD_CPUID);
22
 
23
    SET(rd_req_eax);
24
    SET(rd_req_ebx);
25
    SET(rd_req_ecx);
26
    SET(rd_req_edx);
27
 
28
    IF(rd_mutex_busy_eax); SET(rd_waiting); ENDIF();
29
ENDIF();
30
31
 
32
33
IF(wr_cmd == `CMD_CPUID);
34
 
35
    IF(eax == 32'd0);
36
        SAVE(eax, 32'd1);
37
        SAVE(ebx, "ineG");
38
        SAVE(edx, "Aenu");
39
        SAVE(ecx, "684O");
40
    ENDIF();
41
 
42
    IF(eax != 32'd0);
43
        SAVE(eax, `CPUID_MODEL_FAMILY_STEPPING);
44
        SAVE(ebx, 32'h00010000);
45
        SAVE(ecx, 32'd0);
46
        SAVE(edx, 32'd0);
47
    ENDIF();
48
 
49
    //reset pipeline
50
    SET(wr_req_reset_micro);
51
    SET(wr_req_reset_rd);
52
    SET(wr_req_reset_exe);
53
ENDIF();
54
55
 

powered by: WebSVN 2.1.0

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