[计算机软件及应用]9UML-SystemC设计实例1.pptVIP

  • 8
  • 0
  • 约7.81千字
  • 约 47页
  • 2018-02-15 发布于浙江
  • 举报

[计算机软件及应用]9UML-SystemC设计实例1.ppt

[计算机软件及应用]9UML-SystemC设计实例1

9.6 添加通道之后的程序代码 void Recorder::Input(void) { int iOp; wait(SC_ZERO_TIME); for(;;) { cout1(录音), 2(单次播放)...; ciniOp; switch(iOp) { case 1: eRecordStart.notify(); wait(eRecordStop); break; case 2: ePlayStart.notify(); wait(ePlayStop); break; default: return; } } } 9.6 添加通道之后的程序代码 void Recorder::Record() { for(;;) { wait(eRecordStart); coutsc_time_stamp()...开始录音endl; chAudio.write; coundl; chAudio.write(0000001); coundl; chAudio.write(0000010); cout000000010endl; chAudio.write; coundl;

文档评论(0)

1亿VIP精品文档

相关文档