快乐学习 一个网站喵查铺子(catpuzi.com)全搞定~

标签:现代数字电子技术基础

中国大学MOOC答案

已知时序电路的状态表如下表所示。如果电路的初始状态为a,输入信号A依次是1 0 1 0 1 1 1,试确定电路经历的状态         ,及输出序列         。

已知时序电路的状态表如下表所示。如果电路的初始状态为<em>a</em>,输入信号<em>A</em>依次是<strong>1 0 1 0</strong> <strong>1</strong> <strong>1</strong> <strong>1</strong>,试确定电路经历的状态         ,及输出序列         。
已知时序电路的状态表如下表所示。如果电路的初始状态为a,输入信号A依次是1 0 1 0 1 1 1,试确定电路经历的状态         ,及输出序列         。 A、abababdc,0101110 B、abababdc,0101010 C、ababebdc,0101010 D、abcbabdc,0111010 喵查答案:abababdc,0101……继续阅读 »

中国大学MOOC答案

下面是一个4位的双向移位寄存器程序,该程序正确吗?module UniversalShift (S1,S0,Din,Dsl,Dsr,Q,CP,CLR_);   input S1, S0;                  //Select inputs   input Dsl, Dsr;                //Serial Data inputs         input CP, CLR_;                 //Clock and Reset   input [3:0] Din;               //Parallel Data input   output [3:0] Q;                //Register output   reg [3:0] Q;   always @ (posedge CP or negedge CLR_)     if (~CLR_) Q <= 4'b0000;       else        case ({S1,S0})         2’b00: Q <= Q;          //No change         2’b01: Q <= {Dsr,Q[3:1]}; //Shift right         2’b10: Q <= {Q[2:0],Dsl}; //Shift left         2’b11: Q <= Din;         //Parallel load input        endcaseendmodule

下面是一个4位的双向移位寄存器程序,该程序正确吗?<strong>module</strong> UniversalShift (S1,S0,Din,Dsl,Dsr,Q,CP,CLR_);   <strong>input</strong> S1, S0;                  //Select inputs   <strong>input</strong> Dsl, Dsr;                //Serial Data inputs         <strong>input</strong> CP, CLR_;                 //Clock and Reset   <strong>input</strong> [3:0] Din;               //Parallel Data input   <strong>output</strong> [3:0] Q;                //Register output   <strong>reg</strong> [3:0] Q;   <strong>always</strong> <strong>@</strong> (<strong>posedge</strong> CP <strong>or</strong> <strong>negedge</strong> CLR_)     <strong>if</strong> (~CLR_) Q <= 4'b0000;       <strong>else</strong>        <strong>case</strong> ({S1,S0})         2’b00: Q <= Q;          //No change         2’b01: Q <= {Dsr,Q[3:1]}; //Shift right         2’b10: Q <= {Q[2:0],Dsl}; //Shift left         2’b11: Q <= Din;         //Parallel load input        <strong>endcase</strong><strong>endmodule</strong>
A、正确 B、错误 喵查答案:正确 ……继续阅读 »

中国大学MOOC答案

下面是将输入的4位二进制数转换成为两个8421 BCD码的程序,该程序正确吗?module _4bitBIN2bcd(Bin, BCD1,BCD0);       input [3:0] Bin;       output reg[3:0] BCD1, BCD0;       always @(Bin)       begin              {BCD1, BCD0} = 8’h00;              if(Bin < 10)                      begin                            BCD1 = 4’h0;                            BCD0 = Bin;                     end              else                     begin                            BCD1 = 4’h1;                            BCD0 = Bin-4’d10;                     end                             endendmodule

下面是将输入的4位二进制数转换成为两个8421 BCD码的程序,该程序正确吗?<strong>module</strong> _4bitBIN2bcd(Bin, BCD1,BCD0);      <strong> input</strong> [3:0] Bin;       <strong>output reg</strong>[3:0] BCD1, BCD0;       <strong>always</strong> @(Bin)      <strong> begin</strong>              {BCD1, BCD0} = 8’h00;             <strong> if</strong>(Bin < 10)                     <strong> begin</strong>                            BCD1 = 4’h0;                            BCD0 = Bin;                     <strong>end</strong>              <strong>else</strong>                     <strong>begin</strong>                            BCD1 = 4’h1;                            BCD0 = Bin-4’d10;                    <strong> end    </strong>                      <strong>   end</strong><strong>endmodule</strong>
A、正确 B、错误 喵查答案:正确 ……继续阅读 »