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

Subversion Repositories zipcpu

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 86 to Rev 87
    Reverse comparison

Rev 86 → Rev 87

/zipcpu/trunk/bench/cpp/zippy_tb.cpp
733,8 → 733,8
*/
mvprintw(ln-3, 48, "Op(%x)%8x,%8x->",
m_core->v__DOT__thecpu__DOT__opn,
m_core->v__DOT__thecpu__DOT__r_opA,
m_core->v__DOT__thecpu__DOT__r_opB);
m_core->v__DOT__thecpu__DOT__opA,
m_core->v__DOT__thecpu__DOT__opB);
if (m_core->v__DOT__thecpu__DOT__alu_valid)
printw("%08x", m_core->v__DOT__thecpu__DOT__alu_result);
else
741,7 → 741,7
printw("%8s","");
mvprintw(ln-1, 48, "%s%s%s ",
(m_core->v__DOT__thecpu__DOT__alu_valid)?"A"
:((m_core->v__DOT__thecpu__DOT__doalu__DOT__genblk3__DOT__r_busy)?"a":" "),
:((m_core->v__DOT__thecpu__DOT__doalu__DOT__genblk2__DOT__r_busy)?"a":" "),
(m_core->v__DOT__thecpu__DOT__div_valid)?"D"
:((m_core->v__DOT__thecpu__DOT__div_busy)?"d":" "),
(m_core->v__DOT__thecpu__DOT__div_valid)?"F"
1754,13 → 1754,17
 
while(!done) {
if ((high_speed)&&(!manual)&&(!halted)) {
// chv = getch();
 
struct pollfd fds[1];
fds[0].fd = STDIN_FILENO;
fds[0].events = POLLIN;
 
if (poll(fds, 1, 0) > 0)
chv = getch();
else
chv = ERR;
 
} else {
chv = getch();
}
1773,6 → 1777,7
break;
case 'G':
high_speed = true;
// cbreak();
case 'g':
tb->wb_write(CMD_REG, 0);
if (halted)
1800,6 → 1805,8
tb->step();
manual = false;
halted = true;
// if (high_speed)
// halfdelay(1);
high_speed = false;
break;
case 'S':
1807,6 → 1814,8
erase();
manual = true;
halted = true;
// if (high_speed)
// halfdelay(1);
high_speed = false;
tb->m_core->v__DOT__cmd_halt = 0;
tb->m_core->v__DOT__cmd_step = 1;
1818,6 → 1827,8
erase();
manual = true;
halted = true;
// if (high_speed)
// halfdelay(1);
high_speed = false;
tb->m_core->v__DOT__cmd_halt = 1;
tb->m_core->v__DOT__cmd_step = 0;
1829,6 → 1840,8
erase();
manual = true;
halted = false;
// if (high_speed)
// halfdelay(1);
high_speed = false;
// tb->m_core->v__DOT__thecpu__DOT__step = 0;
tb->m_core->v__DOT__cmd_halt = 0;

powered by: WebSVN 2.1.0

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