X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=flash.v;h=06ca6b6d7b4646c355b64082cdd11f0e913ad71c;hb=ab3ea03d7c7575d8d9917122a463935867a8572c;hp=59a472e208a72a7a91c01786a803a0ad145de713;hpb=b5efed3aa26a11e1da3639806afea5c772fff7aa;p=clump.git diff --git a/flash.v b/flash.v index 59a472e..06ca6b6 100644 --- 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));