• 2022-06-09
    ‎module cnt32‎‎(‎‎ input clk,‎‎ output reg[31:0] q‎‎);‎‎always @(posedge clk) ‎‎ q = q + 1'b1;‎‎endmodule‎‎上述HDL程序是用什么语言写的?‎
    A: C++
    B: Java
    C: Verilog
    D: VHDL
  • C

    内容

    • 0

      module CNT4(CLK,Q); output [3:0] Q; input CLK;reg ____ Q1 ; always @(posedge CLK)Q1 = Q1+1 ;assign Q = Q1; endmodule空格处应该填入: A: reg B: CLK C: Q1 D: [3:0]

    • 1

      ‏module CNT4(CLK,Q); ‎ ‏output [3:0] Q; input CLK;‎ ‏reg ____ Q1 ; ‏always @(posedge CLK)‎ ‏Q1 = Q1+1 ;‎ ‏assign Q = Q1; ‏endmodule‎ ‏空格处应该填入: A: eg B: Q1 C: CLK D: [3:0]

    • 2

      中国大学MOOC: module CNT4(CLK,Q); output [3:0] Q; input CLK;reg ____ Q1 ; always @(posedge CLK)Q1 = Q1+1 ;assign Q = Q1; endmodule空格处应该填入:

    • 3

      下面是一计数器的VerilogHDL程序,计数器的模( )。module Cnt4 (ClK, Q) ; output &#91;3:0&#93; Q ; input ClK ; reg&#91;3:0&#93; Q1; always @ (posedge CLK) Q1<=Q1+1; assign Q=Q1;endmodule A: 2 B: 4 C: 8 D: 16

    • 4

      下面是一计数器的VerilogHDL程序,计数器的模( )。module Cnt4 (ClK, Q) ; output &#91;3:0&#93; Q ; input ClK ; reg&#91;3:0&#93; Q1; always @ (posedge CLK) Q1&lt;=Q1+1; assign Q=Q1;endmodule A: 2 B: 4 C: 8 D: 16