Proper macros for simulation/normal running
[clump.git] / flash.v
diff --git a/flash.v b/flash.v
index 59a472e208a72a7a91c01786a803a0ad145de713..06ca6b6d7b4646c355b64082cdd11f0e913ad71c 100644 (file)
--- a/flash.v
+++ b/flash.v
@@ -1,5 +1,11 @@
 `include "lisp_processor.v"
 
+`ifdef SIM
+`define SCALING 0
+`else
+`define SCALING 7
+`endif
+
 module top (input CLK, output [4:0] LED, output UART_TX, input UART_RX);
    // Prescaler on the clock
    reg [24:0]  counter = 0;
@@ -9,7 +15,7 @@ module top (input CLK, output [4:0] LED, output UART_TX, input UART_RX);
    end
 
    // Connect up the processor
-   PROCESSOR cpu(.clk(counter[7]),
+   PROCESSOR cpu(.clk(counter[`SCALING]),
                                 .led(LED),
                                 .uart_tx(UART_TX),
                                 .uart_rx(UART_RX));
This page took 0.008968 seconds and 4 git commands to generate.