Question: Write in vhdl syntax module count_ enabler(input reset,clk,output reg en out); parameter buswidth-10, full count-957; // default values (not correct) reg [buswidth-1:0] count; always @
module count_ enabler(input reset,clk,output reg en out); parameter buswidth-10, full count-957; // default values (not correct) reg [buswidth-1:0] count; always @ (posedge clk, posedge reset) if (reset) begin count full_count/2; // half count value en-out = 1; end else if (count) begin count = count - 1; en out = 0; end else begin count full_count; / full count value en out = 1; end endmodule
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
