下面哪种代码执行后是与其他结果不一样的? A: module mux2_1(a,b,sel,out); input a,b,sel; output out; assign out=(sel==1)?a:b; endmodule B: module mux2_1(a,b,sel,out); input a,b,sel; output out; reg out; always@(a or b or sel) begin case(sel) 0: out=a; 1: out=b; endcase end endmodule C: module mux2_1(a,b,sel,out); input a,b,sel; output out; reg out; always@(*) if(sel==0) out=a; else out=b; endmodule
下面哪种代码执行后是与其他结果不一样的? A: module mux2_1(a,b,sel,out); input a,b,sel; output out; assign out=(sel==1)?a:b; endmodule B: module mux2_1(a,b,sel,out); input a,b,sel; output out; reg out; always@(a or b or sel) begin case(sel) 0: out=a; 1: out=b; endcase end endmodule C: module mux2_1(a,b,sel,out); input a,b,sel; output out; reg out; always@(*) if(sel==0) out=a; else out=b; endmodule
celebrate/ˈselɪbreɪt/
celebrate/ˈselɪbreɪt/
中国大学MOOC: 在语句assign Y = sel ? 0 : 1;中,当sel=0时,Y的值为( )
中国大学MOOC: 在语句assign Y = sel ? 0 : 1;中,当sel=0时,Y的值为( )
在语句assign Y = sel ? 0 : 1;中,当sel=0时,Y的值为( )? z|x|0|1
在语句assign Y = sel ? 0 : 1;中,当sel=0时,Y的值为( )? z|x|0|1
语句“SEL<= B&A”的作用是( )
语句“SEL<= B&A”的作用是( )
在横线里填上“>”、“<”或“=”.当a______1时,3.2÷a>3.2当a______1时,3.2÷a<3.2当a______1时,3.2÷a=3.2当a______3.2时,a÷3.2<1.
在横线里填上“>”、“<”或“=”.当a______1时,3.2÷a>3.2当a______1时,3.2÷a<3.2当a______1时,3.2÷a=3.2当a______3.2时,a÷3.2<1.
语句组“PROCESS(SEL) ...END PROCESS”的作用( )
语句组“PROCESS(SEL) ...END PROCESS”的作用( )
一个铀-235核裂变可以释放出200MeV的能量,相当于()J。 A: 3.2×10-12 B: 3.2×10-11 C: 3.2×10-10 D: 3.2×10-9
一个铀-235核裂变可以释放出200MeV的能量,相当于()J。 A: 3.2×10-12 B: 3.2×10-11 C: 3.2×10-10 D: 3.2×10-9
以下语言是数据流建模方式吗? A: xor x1(a,b,c): B: assign adder_out = mult_out + out; C: always @ (a or b or sel) begin if (sel) c = a; else c = b;?end D: and a1(out,in1,in2);
以下语言是数据流建模方式吗? A: xor x1(a,b,c): B: assign adder_out = mult_out + out; C: always @ (a or b or sel) begin if (sel) c = a; else c = b;?end D: and a1(out,in1,in2);
首尔城市的三字代码为()。 A: CAN B: SEL C: SIN D: NYC
首尔城市的三字代码为()。 A: CAN B: SEL C: SIN D: NYC