module Counter_Top_Level_design
(
input clk,
input rst_n,
output [7:0] out
);
wire counter_enable;
counter counter_inst (
.clk ( clk ),
.rst_n ( rst_n ),
.enable ( counter_enable ),
.count ( out )
);
// For simulation, use this instantiation:
/*niosii_system_tb_niosii_system_inst niosii_system_inst (
.clk_clk ( clk ), // clk.clk
.reset_reset_n ( rst_n ), // reset.reset_n
.output_pio_export ( counter_enable ) // output_pio.export
);*/
// For synthesis, use this instantiation:
NIOS_SYSTEM niosii_system_inst (
.clk_clk ( clk ), // clk.clk
.reset_reset_n ( rst_n ), // reset.reset_n
.output_pio_export ( counter_enable ), // output_pio.export
.counter_out_export (out)
);
endmodule