第七章单元测试
  1. 选择下面两段代码正确的一个。 ( )

  2. A:
    module example(o1, o2, a, b, c, d);
    input a, b, c, d;
    output o1, o2;
    reg c, d, o2;
    and u1(o2, c, d);
    always @(a or b)
    if (a) o1 = b; else o1 = 0;
    endmodule
    B:
    module example(o1, o2, a, b, c, d);
    input a, b, c, d;
    output o1, o2;
    reg o1;
    and u1(o2, c, d);
    always @(a or b)
    if (a) o1 = b; else o1 = 0;
    endmodule

    答案:
    module example(o1, o2, a, b, c, d);
    input a, b, c, d;
    output o1, o2;
    reg o1;
    and u1(o2, c, d);
    always @(a or b)
    if (a) o1 = b; else o1 = 0;
    endmodule

  3. 分析下列程序,得到10时刻执行结果a=1,15时刻b=1,20时刻c=1。
    initial
    fork
    #10 a = 1;
    #15 b = 1;
    begin
    #20 c = 1
    #10 d = 1;
    end
    #25 e = 1;
    Join
    ( )

  4. A:错 B:对
  5. 根据下面的程序,
    always@(posedge clk)
    begin
     q0<=~q2;
       q1<=q0;
       q2<=q1;
    end

    画出综合出来的电路图如图所示。

        ( )


  6. A:错 B:对
  7. Quartus II可以采用文本输入法和图形输入法进行电路设计。 ( )

  8. A:错 B:对
  9. Altera公司的Quartus II和公司的ModelSim是两种目前世界上比较流行和实用的EDA工具软件。 ( )

  10. A:错 B:对

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(3) dxwkbang
返回
顶部