![]() I want to give the input in code itself.I dont want to use testbench to give different serial inputs. ![]() ![]() Supporting Educators, Students, and Our Communities. S <= s end end assign dout = s end end endmodule Micron can help you jumpstart your career and move seamlessly from education to innovation. My project involved the use of hardware description language (HDL) to analyze, synthesize and simulate a digital circuit. S <= s end end assign dout = s end else begin always ( posedge (clk ) ) begin //i=3 if (reset ) S <= s end end assign dout = s end else if (i = 2 ) begin //i=2 always ( posedge (clk ) ) begin if (reset ) S <= s end end assign dout = s end else if (i = 1 ) begin //i=1 always ( posedge (clk ) ) begin if (reset ) Module trai1enc ( din ,clk ,reset ,dout ) output dout wire dout input din input clk wire clk input reset wire reset reg s initial s = 0 assign din = 1 assign din = 0 assign din = 0 assign din = 1 genvar i for (i = 0 i <= 3 i =i + 1 ) begin if (i = 0 ) begin //i=0 always ( posedge (clk ) ) begin if (reset )
0 Comments
Leave a Reply. |