|
|
|
|
|
|
|
|
`include "../spi_interface.v" |
|
|
`include "../spi_interface.v" |
|
|
`include "../fsm/Fsm.sv" |
|
|
`include "../fsm/Fsm.sv" |
|
|
<<<<<<< HEAD |
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
======= |
|
|
|
|
|
>>>>>>> b8d8341 (Initalized top level design) |
|
|
|
|
|
======= |
|
|
|
|
|
`include "../Bus_if/Bus_if.sv" |
|
|
`include "../Bus_if/Bus_if.sv" |
|
|
<<<<<<< HEAD |
|
|
|
|
|
>>>>>>> c93bdaf (Added bus_if and fsm to top level design) |
|
|
|
|
|
======= |
|
|
|
|
|
`include "../timer_port/timer_top.sv" |
|
|
`include "../timer_port/timer_top.sv" |
|
|
>>>>>>> 026899b (Added parallelport, timer and ampelsteuerung) |
|
|
|
|
|
======= |
|
|
|
|
|
`include "../Bus_if/Bus_if.sv" |
|
|
|
|
|
`include "../timer_port/timer_top.sv" |
|
|
|
|
|
>>>>>>> 026899b930835597e8ea85d65177e75bdc2b1a06 |
|
|
|
|
|
|
|
|
|
|
|
module Top( |
|
|
module Top( |
|
|
input wire clk, |
|
|
input wire clk, |
|
|
|
|
|
|
|
|
// Bus (Interface) |
|
|
// Bus (Interface) |
|
|
Bus_if bus(.clk(clk)); |
|
|
Bus_if bus(.clk(clk)); |
|
|
// SPI Interface |
|
|
// SPI Interface |
|
|
|
|
|
|
|
|
// FSM |
|
|
// FSM |
|
|
<<<<<<< HEAD |
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
>>>>>>> b8d8341 (Initalized top level design) |
|
|
|
|
|
======= |
|
|
|
|
|
======= |
|
|
|
|
|
>>>>>>> 026899b930835597e8ea85d65177e75bdc2b1a06 |
|
|
|
|
|
Fsm fsm( |
|
|
Fsm fsm( |
|
|
.clk(clk), |
|
|
.clk(clk), |
|
|
.inAlarmAmpel(bus.AlarmAmpel), |
|
|
.inAlarmAmpel(bus.AlarmAmpel), |
|
|
|
|
|
|
|
|
.outSendData(bus.SendData), |
|
|
.outSendData(bus.SendData), |
|
|
.outTimerEN(bus.TimerEN) |
|
|
.outTimerEN(bus.TimerEN) |
|
|
); |
|
|
); |
|
|
<<<<<<< HEAD |
|
|
|
|
|
>>>>>>> c93bdaf (Added bus_if and fsm to top level design) |
|
|
|
|
|
======= |
|
|
|
|
|
>>>>>>> 026899b930835597e8ea85d65177e75bdc2b1a06 |
|
|
|
|
|
// Parallelport |
|
|
// Parallelport |
|
|
parallelport parallelport1 ( |
|
|
parallelport parallelport1 ( |
|
|
.inClk(clk), |
|
|
.inClk(clk), |
|
|
|
|
|
|
|
|
.alarm(bus.AlarmAmpel) |
|
|
.alarm(bus.AlarmAmpel) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
assign AlarmAmpel = bus.AlarmAmpel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assign AlarmAmpel = bus.AlarmAmpel; |
|
|
endmodule |
|
|
endmodule |