From 2542aba7b673cfeeaf485d3b4f587704b47705ce Mon Sep 17 00:00:00 2001
From: Marius Gavrilescu <marius@ieval.ro>
Date: Thu, 23 May 2019 22:06:55 +0100
Subject: [PATCH] more speed

---
 Makefile | 2 +-
 master.v | 4 ++--
 worker.v | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 1b88b5c..9bb348b 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ worker.blif: worker.v
 	tools/yosys/yosys -p 'synth_ice40 -top worker -blif $@' $<
 
 %.asc: %.pcf %.blif
-	tools/arachne-pnr/bin/arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ -P tq144
+	tools/arachne-pnr/bin/arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ -P tq144 -s 4
 
 %.bin: %.asc
 	tools/icestorm/icepack/icepack $< $@
diff --git a/master.v b/master.v
index a009ce2..3c70e91 100644
--- a/master.v
+++ b/master.v
@@ -7,7 +7,7 @@
  `define UART_DIVIDE 1
  `define I2C_DIVIDE 4
 `else
- `define UART_DIVIDE 2048
+ `define UART_DIVIDE 1024
  `define I2C_DIVIDE 256
 `endif
 
@@ -36,7 +36,7 @@ module master(input CLKin, output [4:0] led, output uart_tx, input uart_rx, outp
 
    always @(posedge clk) begin
 	  if(busy_in)
-		dont_send <= 23'b11111111111111111111111;
+		dont_send <= 21'b111111111111111111111;
 	  else if(dont_send)
 		dont_send <= dont_send - 1;
    end
diff --git a/worker.v b/worker.v
index 9a7760e..9e03d93 100644
--- a/worker.v
+++ b/worker.v
@@ -6,7 +6,7 @@
 `ifdef SIM
  `define UART_DIVIDE 1
 `else
- `define UART_DIVIDE 2048
+ `define UART_DIVIDE 1024
 `endif
 
 module worker (input CLKin, output [4:0] led, output uart_tx, input uart_rx, output reg busy_out = 1, input busy_in, input is_worker);
@@ -24,7 +24,7 @@ module worker (input CLKin, output [4:0] led, output uart_tx, input uart_rx, out
 
    always @(posedge clk) begin
 	  if(busy_in)
-		dont_send <= 23'b11111111111111111111111;
+		dont_send <= 21'b111111111111111111111;
 	  else if(dont_send)
 		dont_send <= dont_send - 1;
    end
-- 
2.39.5