diff --git a/hw/factory-bitstream.py b/hw/factory-bitstream.py index 739f059..b9f201f 100644 --- a/hw/factory-bitstream.py +++ b/hw/factory-bitstream.py @@ -899,7 +899,7 @@ class BaseSoC(SoCCore): # and the "-dffe_min_ce_use 4" flag prevents Yosys from generating a # Clock Enable signal for a LUT that has fewer than 4 flip-flops. # This increases density, and lets us use the FPGA more efficiently. - platform.toolchain.nextpnr_yosys_template[2] += " -relut -dffe_min_ce_use 5" + platform.toolchain.nextpnr_yosys_template[2] += " -relut -dffe_min_ce_use 4" if use_dsp: platform.toolchain.nextpnr_yosys_template[2] += " -dsp" diff --git a/sw/include/fomu/csr.h b/sw/include/fomu/csr.h index 00f703a..7071551 100644 --- a/sw/include/fomu/csr.h +++ b/sw/include/fomu/csr.h @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------- -// Auto-generated by Migen (bc90344) & LiteX (3a72688b) on 2019-05-23 14:16:56 +// Auto-generated by Migen (bc90344) & LiteX (3a72688b) on 2019-05-26 18:13:05 //-------------------------------------------------------------------------------- #ifndef __GENERATED_CSR_H #define __GENERATED_CSR_H diff --git a/sw/src/tester.c b/sw/src/tester.c index 5eab76a..5aaafb1 100644 --- a/sw/src/tester.c +++ b/sw/src/tester.c @@ -137,8 +137,13 @@ static uint32_t test_one_color(int color) rgb_bypass_write(1 << color); rgb_mode_off(); - rgb_duty_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 1); - rgb_pulse_write(SYSTEM_CLOCK_FREQUENCY / 1000 * 1); + + // Amount of time it's off (900 us) + rgb_duty_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 9); + + // Total amount of time for one pulse (1000 us or 1 ms) + rgb_pulse_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 10); + put_string("RGB"); put_char(color_names[color]); put_string(": ");