![]() ![]() I want to give the input in code itself.I dont want to use testbench to give different serial inputs. S <= s end end assign dout = s end end endmodule S <= s end end assign dout = s end else begin always ( posedge (clk ) ) begin //i=3 if (reset ) The SN74ALS166 shown above is the closest match of an actual part to the previous parallel-in/ serial out shifter figures. ![]() S <= s end end assign dout = s end else if (i = 2 ) begin //i=2 always ( posedge (clk ) ) begin if (reset ) SN74ALS165 parallel-in/ serial-out 8-bit shift register, asynchronous load CD4014B parallel-in/ serial-out 8-bit shift register, synchronous load SN74LS647 parallel-in/ serial-out 16-bit shift register, synchronous load. 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. |