diff options
author | David Shah <dave@ds0.me> | 2019-04-01 20:16:29 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-04-02 15:30:01 +0100 |
commit | 32327b761ab8b8c438bd91d6c32f061ffaed3454 (patch) | |
tree | 22d0674b10e29634cf072058ae0bafcd3e2d9149 /generic/synth | |
parent | 6a383cd4c57db1f8bab6416daffdb24c0eb093c6 (diff) | |
download | nextpnr-32327b761ab8b8c438bd91d6c32f061ffaed3454.tar.gz nextpnr-32327b761ab8b8c438bd91d6c32f061ffaed3454.tar.bz2 nextpnr-32327b761ab8b8c438bd91d6c32f061ffaed3454.zip |
generic: Simple working example
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'generic/synth')
-rw-r--r-- | generic/synth/blink.v | 9 | ||||
-rw-r--r-- | generic/synth/synth_generic.tcl | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/generic/synth/blink.v b/generic/synth/blink.v deleted file mode 100644 index b7cb1b86..00000000 --- a/generic/synth/blink.v +++ /dev/null @@ -1,9 +0,0 @@ -module top(input clk, output reg [7:0] leds); - -reg [25:0] ctr; -always @(posedge clk) - ctr <= ctr + 1'b1; - -assign leds = ctr[25:18]; - -endmodule
\ No newline at end of file diff --git a/generic/synth/synth_generic.tcl b/generic/synth/synth_generic.tcl index c5950788..e5d88e0d 100644 --- a/generic/synth/synth_generic.tcl +++ b/generic/synth/synth_generic.tcl @@ -14,7 +14,7 @@ yosys memory_map yosys opt -full yosys techmap -map +/techmap.v yosys opt -fast -yosys abc -lut $LUT_K +yosys abc -lut $LUT_K -dress yosys clean yosys techmap -D LUT_K=$LUT_K -map [file dirname [file normalize $argv0]]/cells_map.v yosys clean |