jawadysf
Newbie level 5
how to replace the wait command when implementing the code on hardware?
e.g in the following code how to replace the # for hardware implementation
module word_gen(clk,cmd,data,status);
input clk;
output cmd;
output data;
output status;
reg cmd,data,status;
//Generation of syns of words
initial
begin
cmd=1'b1; //Syns of Command word is on for 1.5uses
status=1'b1; //Syns of Status word is on for 1.5uses
data=1'b0; //Syns of data word is off for 1.5uses
#1.5 cmd=1'b0; status=1'b0; data=1'b1; //Syns of data word is on for 1.5uses
#1.5 $finish; //Syns of commandn and status word is of for 1.5uses
end
endmodule
e.g in the following code how to replace the # for hardware implementation
module word_gen(clk,cmd,data,status);
input clk;
output cmd;
output data;
output status;
reg cmd,data,status;
//Generation of syns of words
initial
begin
cmd=1'b1; //Syns of Command word is on for 1.5uses
status=1'b1; //Syns of Status word is on for 1.5uses
data=1'b0; //Syns of data word is off for 1.5uses
#1.5 cmd=1'b0; status=1'b0; data=1'b1; //Syns of data word is on for 1.5uses
#1.5 $finish; //Syns of commandn and status word is of for 1.5uses
end
endmodule