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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_66/] [or1ksim/] [cuc/] [insn.c] - Diff between revs 905 and 906

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 905 Rev 906
Line 57... Line 57...
 
 
{"lrbb", 0,"always @(posedge clk or posedge rst)"},
{"lrbb", 0,"always @(posedge clk or posedge rst)"},
{"cmov", 0,"assign \1 = \4 ? \2 : \3;"},
{"cmov", 0,"assign \1 = \4 ? \2 : \3;"},
{"reg", 0, "always @(posedge clk or posedge rst)"},
{"reg", 0, "always @(posedge clk or posedge rst)"},
 
 
 
{"call", 0, "/* function call */"},
{"nop", 0, NULL}};
{"nop", 0, NULL}};
 
 
/* Find known instruction and attach them to insn */
/* Find known instruction and attach them to insn */
void change_insn_type (cuc_insn *i, int index)
void change_insn_type (cuc_insn *i, int index)
{
{
Line 1000... Line 1001...
/* Displays shared instructions */
/* Displays shared instructions */
void print_shared (cuc_func *rf, cuc_shared_item *shared, int nshared)
void print_shared (cuc_func *rf, cuc_shared_item *shared, int nshared)
{
{
  int i, first = 1;
  int i, first = 1;
  for (i = 0; i < nshared; i++) {
  for (i = 0; i < nshared; i++) {
    printf ("%s%s%s", first ? "" : "-", cuc_insn_name (rf->INSN(shared[i].ref).index),
    printf ("%s%s%s", first ? "" : "-", cuc_insn_name (&rf->INSN(shared[i].ref)),
                    shared[i].cmatch ? "!" : "");
                    shared[i].cmatch ? "!" : "");
    first = 0;
    first = 0;
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

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