fpga-lab-2/Top/top.sv

57 lines
1.2 KiB
Systemverilog
Raw Normal View History

2023-01-24 12:46:22 +03:00
module top
//(
// input logic clk,
// input logic train,
// output logic green,
// output logic red,
// output logic yellow
//);
//
// niosII u0 (
// .clk_clk (clk), // clk.clk
// .reset_reset_n (1'b1), // reset.reset_n
// .sem_export_train (~train), // sem_export.train
// .sem_export_red (red), // .red
// .sem_export_yellow (yellow), // .yellow
// .sem_export_green (green) // .green
// );
2023-01-24 12:46:22 +03:00
(
2023-02-07 16:10:37 +03:00
// reset
nreset,
//////////// CLOCK //////////
CLOCK_50,
CLOCK2_50,
CLOCK3_50,
//////////// LED //////////
LEDG,
LEDR,
FOUTA
2023-01-24 12:46:22 +03:00
);
output FOUTA;
//////////// CLOCK //////////
input CLOCK_50;
input CLOCK2_50;
input CLOCK3_50;
2023-02-07 16:10:37 +03:00
input nreset;
//////////// LED //////////
output [8:0] LEDG;
output [17:0] LEDR;
niosII u0 (
.clk_clk (CLOCK_50), // clk.clk
.conduit_end_writeresponsevalid_n (LEDG[0]), // conduit_end.writeresponsevalid_n
2023-02-07 16:10:37 +03:00
.reset_reset_n (nreset) // reset.reset_n
2023-01-24 12:46:22 +03:00
);
assign LEDG[7:1] = 1'b0;
assign LEDR[17:0] = 1'b0;
assign FOUTA = LEDG[0];
2023-01-24 12:46:22 +03:00
endmodule