📄 shift.cpp
字号:
/* * TU Eindhoven * Eindhoven, The Netherlands * * Name : shift.cc * * Author : Sander Stuijk (sander@ics.ele.tue.nl) * * Date : July 23, 2002 * * Function : Shifter * * History : * 23-07-02 : Initial version. * 13-12-02 : Synthesizable version A.S.Slusarczyk@tue.nl * */ #include "shift.h"void SHIFTRIGHT::shiftright_thread(){ sc_bv<DWORD> a; sc_bv<DWORD> b; //-> while (true) { #ifdef VERBOSE clog << "SHIFT" << endl; #endif a = in.read(); b = a >> SHIFTBIT; out.write(b); #ifdef VERBOSE clog << "Shifter: " << a; clog << " -> "; clog << b << endl; #endif //-> wait();//-> }}void SHIFTLEFT::shiftleft_thread(){ sc_bv<DWORD> a; sc_bv<DWORD> b; //-> while (true) { #ifdef VERBOSE clog << "SHIFT" << endl; #endif a = in.read(); b = a << SHIFTBIT; out.write(b); #ifdef VERBOSE clog << "Shifter: " << a; clog << " -> "; clog << b << endl; #endif //-> wait();//-> }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -