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 87 to Rev 86
    Reverse comparison

Rev 87 → Rev 86

/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__opA,
m_core->v__DOT__thecpu__DOT__opB);
m_core->v__DOT__thecpu__DOT__r_opA,
m_core->v__DOT__thecpu__DOT__r_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__genblk2__DOT__r_busy)?"a":" "),
:((m_core->v__DOT__thecpu__DOT__doalu__DOT__genblk3__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,17 → 1754,13
 
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();
}
1777,7 → 1773,6
break;
case 'G':
high_speed = true;
// cbreak();
case 'g':
tb->wb_write(CMD_REG, 0);
if (halted)
1805,8 → 1800,6
tb->step();
manual = false;
halted = true;
// if (high_speed)
// halfdelay(1);
high_speed = false;
break;
case 'S':
1814,8 → 1807,6
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;
1827,8 → 1818,6
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;
1840,8 → 1829,6
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.