18. How many errors does the following verilog module code have? module something (a,b,c,d); input b,c,d; output [7:0] a
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
18. How many errors does the following verilog module code have? module something (a,b,c,d); input b,c,d; output [7:0] a
18. How many errors does the following verilog module code have? module something (a,b,c,d); input b,c,d; output [7:0] a; reg (7:0) a; always @ (posedge c or negedge d) begin if (!d) begin a <= 8'b00000000; end else if (b) begin a <= a + 2; end else begin a <= a; end end endmodule (b) 2 (c) 0 (d) 1 19. We prefer to use an FPGAs instead of an ASICs when: (a) 3 (a) required power consumption is high (b) all answers are correct (c) sales volumes are high (d) required operating frequency is high
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!