Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17f361ea12 | ||
|
|
730cc895b1 | ||
|
|
019dc2868e | ||
|
|
b30efd039d | ||
|
|
ecd6f16dbe | ||
|
|
6a72019f25 | ||
|
|
53868c67fd | ||
|
|
6ab278694e | ||
|
|
026899b930 | ||
|
|
9ffb72cf97 | ||
|
|
72c964475f | ||
|
|
d2aa8277c7 | ||
|
|
c46a1c3b33 |
No files matched your search
@@ -3,8 +3,6 @@ input wire clk12M,
|
|||||||
input wire rst,
|
input wire rst,
|
||||||
input wire [7:0] data_input,
|
input wire [7:0] data_input,
|
||||||
input wire data_valid,
|
input wire data_valid,
|
||||||
output reg REDn,
|
|
||||||
output reg GRNn,
|
|
||||||
output reg RED,
|
output reg RED,
|
||||||
output reg GRN,
|
output reg GRN,
|
||||||
output reg alarm
|
output reg alarm
|
||||||
@@ -12,7 +10,8 @@ output reg alarm
|
|||||||
|
|
||||||
wire red_pwm;
|
wire red_pwm;
|
||||||
wire grn_pwm;
|
wire grn_pwm;
|
||||||
|
reg REDn;
|
||||||
|
reg GRNn;
|
||||||
defparam U1.on_hi = 2'b10;
|
defparam U1.on_hi = 2'b10;
|
||||||
defparam U1.on_lo = 2'b01;
|
defparam U1.on_lo = 2'b01;
|
||||||
defparam U1.off = 2'b00;
|
defparam U1.off = 2'b00;
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
`include "../spi_interface.v"
|
`include "../spi_interface.v"
|
||||||
`include "../fsm/Fsm.sv"
|
`include "../fsm/Fsm.sv"
|
||||||
`include "../Bus_if/Bus_if.sv"
|
`include "../Bus_if/Bus_if.sv"
|
||||||
|
`include "../timer_port/timer_top.sv"
|
||||||
|
|
||||||
module Top(
|
module Top(
|
||||||
input wire clk
|
input wire clk,
|
||||||
|
input wire rst,
|
||||||
|
input wire endOfConv,
|
||||||
|
output wire LEDg,
|
||||||
|
output wire LEDr,
|
||||||
|
output wire AlarmAmpel
|
||||||
);
|
);
|
||||||
// Bus (Interface)
|
// Bus (Interface)
|
||||||
Bus_if bus(.clk(clk));
|
Bus_if bus(.clk(clk));
|
||||||
@@ -19,8 +25,33 @@ module Top(
|
|||||||
.outTimerEN(bus.TimerEN)
|
.outTimerEN(bus.TimerEN)
|
||||||
);
|
);
|
||||||
// Parallelport
|
// Parallelport
|
||||||
|
parallelport parallelport1 (
|
||||||
|
.inClk(clk),
|
||||||
|
.inTimerMeas(bus.TimerMeas),
|
||||||
|
.inEndOfConv(endOfConv),
|
||||||
|
.inData(bus.Data),
|
||||||
|
.outDataValid(bus.DataValid),
|
||||||
|
.outData(bus.Data)
|
||||||
|
);
|
||||||
// FRAM-Controller
|
// FRAM-Controller
|
||||||
// Timer
|
// Timer
|
||||||
|
timer timer1 (
|
||||||
|
.inClk(clk),
|
||||||
|
.inTaste(bus.Taste),
|
||||||
|
.inEN(bus.TimerEN),
|
||||||
|
.outReadTemp(bus.ReadTemp),
|
||||||
|
.outTasteAktiv(bus.TasteAktiv)
|
||||||
|
);
|
||||||
// Ampelsteuerung
|
// Ampelsteuerung
|
||||||
|
led_top ampelsteuerung (
|
||||||
|
.clk12M(clk),
|
||||||
|
.rst(rst),
|
||||||
|
.data_input(bus.Data),
|
||||||
|
.data_valid(bus.DataValid),
|
||||||
|
.RED(LEDr),
|
||||||
|
.GRN(LEDg),
|
||||||
|
.alarm(bus.AlarmAmpel)
|
||||||
|
);
|
||||||
|
|
||||||
|
assign AlarmAmpel = bus.AlarmAmpel;
|
||||||
endmodule
|
endmodule
|
||||||
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 73 KiB |