One clock is enough
[yule.git] / flash.v
1 `include "lisp_processor.v"
2
3 `ifdef SIM
4 `define SCALING 0
5 `else
6 `define SCALING 7
7 `endif
8
9 module top (input CLK, output [4:0] LED, output UART_TX, input UART_RX);
10 // Prescaler on the clock
11 reg [24:0] counter = 0;
12
13 always @ (posedge CLK) begin
14 counter <= counter + 1;
15 end
16
17 // Connect up the processor
18 PROCESSOR cpu(.clk(counter[`SCALING]),
19 .led(LED),
20 .uart_tx(UART_TX),
21 .uart_rx(UART_RX));
22 endmodule
This page took 0.020838 seconds and 4 git commands to generate.