随笔分类 -  HDLBits答案

摘要:1 clock module top_module ( ); reg clk; dut U1(.clk(clk)); initial begin clk = 0; end always begin #5; clk = ~clk; end endmodule 2 Tb/tb1 module top_m 阅读全文
posted @ 2022-09-02 17:49 胡不归来 阅读(191) 评论(0) 推荐(0)
摘要:1 Finding bugs in code 1.1 Bugs mux2 module top_module ( input sel, input [7:0] a, input [7:0] b, output [7:0] out ); assign out = sel ? a:b; endmodul 阅读全文
posted @ 2022-09-02 17:45 胡不归来 阅读(341) 评论(0) 推荐(0)
摘要:1 Combinational Logic 1.1 Basic Gates 1.1.1 Exams/m2014 q4h module top_module ( input in, output out); assign out = in; endmodule 1.1.2 Exams/m2014 q4 阅读全文
posted @ 2022-08-22 15:52 胡不归来 阅读(3748) 评论(0) 推荐(1)
摘要:Verilog Language 1 Basics 1.1 Wire module top_module( input in, output out ); assign out = in; endmodule 1.2 Wire4 module top_module( input a,b,c, out 阅读全文
posted @ 2022-08-16 19:54 胡不归来 阅读(1428) 评论(0) 推荐(0)
摘要:Getting started 1 Step one module top_module( output one ); // Insert your code here assign one = 1'b1; endmodule 2 Zero module top_module( output zer 阅读全文
posted @ 2022-08-16 19:24 胡不归来 阅读(81) 评论(0) 推荐(0)