Up/Down Binary Counter with Dynamic Count-to Flag

hello, i need to solve this problem in verilog:Up/Down Binary Counter with Dynamic Count-to Flag

this is start cod:
module DW03_bictr_dcnto_inst( inst_data, inst_count_to, inst_up_dn,
inst_load, inst_cen, inst_clk, inst_reset, count_inst, tercnt_inst );
parameter width = 8;
input [width-1 : 0] inst_data;
input [width-1 : 0] inst_count_to;
input inst_up_dn;
input inst_load;
input inst_cen;
input inst_clk;
input inst_reset;
output [width-1 : 0] count_inst;
output tercnt_inst;
// Instance of DW03_bictr_dcnto
DW03_bictr_dcnto #(width)
U1 ( .data(inst_data), .count_to(inst_count_to), .up_dn(inst_up_dn),
.load(inst_load), .cen(inst_cen), .clk(inst_clk),
.reset(inst_reset), .count(count_inst), .tercnt(tercnt_inst) );
endmodule
i already have: test.v
module DW03_bictr_dcnto_inst( inst_data, inst_count_to, inst_up_dn,
inst_load, inst_cen, inst_clk, inst_reset, count_inst, tercnt_inst );
parameter width = 8;
input [width-1 : 0] inst_data;
input [width-1 : 0] inst_count_to;
input inst_up_dn;
input inst_load;
input inst_cen;
input inst_clk;
input inst_reset;
output [width-1 : 0] count_inst;
output tercnt_inst;
// Instance of DW03_bictr_dcnto
always @(posedge inst_clk or negedge inst_reset)
if (~inst_reset) begin
count_inst
Reply to
buse.victorstefan
Loading thread data ...
> hello, i need to solve this problem in verilog:Up/Down Binary Counter with Dynamic Count-to Flag > > this is start cod: > > > module DW03_bictr_dcnto_inst( inst_data, inst_count_to, inst_up_dn, > inst_load, inst_cen, inst_clk, inst_reset, count_inst, tercnt_inst ); > parameter width = 8; > input [width-1 : 0] inst_data; > input [width-1 : 0] inst_count_to; > input inst_up_dn; > input inst_load; > input inst_cen; > input inst_clk; > input inst_reset; > output [width-1 : 0] count_inst; > output tercnt_inst; > // Instance of DW03_bictr_dcnto > DW03_bictr_dcnto #(width) > U1 ( .data(inst_data), .count_to(inst_count_to), .up_dn(inst_up_dn), > .load(inst_load), .cen(inst_cen), .clk(inst_clk), > .reset(inst_reset), .count(count_inst), .tercnt(tercnt_inst) ); > endmodule > > > i already have: test.v > > module DW03_bictr_dcnto_inst( inst_data, inst_count_to, inst_up_dn, > inst_load, inst_cen, inst_clk, inst_reset, count_inst, tercnt_inst ); > parameter width = 8; > input [width-1 : 0] inst_data; > input [width-1 : 0] inst_count_to; > input inst_up_dn; > input inst_load; > input inst_cen; > input inst_clk; > input inst_reset; > output [width-1 : 0] count_inst; > output tercnt_inst; > // Instance of DW03_bictr_dcnto > always @(posedge inst_clk or negedge inst_reset) > if (~inst_reset) begin > count_inst
Reply to
gnuarm.deletethisbit
Ooooh that's a tough one. Your teacher is terribly mean.
No, seriously, do your homework yourself. We'll gladly help but nobody here will do it for you.
Nicolas
Reply to
Nicolas Matringe

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.