more speed
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 23 May 2019 21:06:55 +0000 (22:06 +0100)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 23 May 2019 21:06:55 +0000 (22:06 +0100)
Makefile
master.v
worker.v

index 1b88b5cc067ba581b9a065663003807172feb444..9bb348ba0ce29595b96b55a16c1a62f0694c1f2c 100644 (file)
--- 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 $< $@
index a009ce2c74099540bddc75c6f422705042b99134..3c70e91c3a0ea5c6cda1135aa8fb95dfc51879ba 100644 (file)
--- 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
index 9a7760e5d07f2f19eddfd00b4abfd25b869581c6..9e03d936f9a5a756fc8346e9c166b4e2fb8c272c 100644 (file)
--- 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
This page took 0.011444 seconds and 4 git commands to generate.