mirror of https://github.com/YosysHQ/yosys.git
Update example for GW1NR-9
This uses the Trenz TEC0117 on Gowin IDE 1.8.4
This commit is contained in:
parent
b51c972296
commit
6cf5157fe7
|
@ -1,41 +1,10 @@
|
||||||
// 50 MHz Clock
|
IO_LOC "clk" 35;
|
||||||
IO_LOC "clk" D11;
|
//IO_LOC "rst_n" 77;
|
||||||
|
IO_LOC "leds[0]" 79;
|
||||||
// LEDs
|
IO_LOC "leds[1]" 80;
|
||||||
IO_LOC "leds[0]" D22;
|
IO_LOC "leds[2]" 81;
|
||||||
IO_LOC "leds[1]" E22;
|
IO_LOC "leds[3]" 82;
|
||||||
IO_LOC "leds[2]" G22;
|
IO_LOC "leds[4]" 83;
|
||||||
IO_LOC "leds[3]" J22;
|
IO_LOC "leds[5]" 84;
|
||||||
IO_LOC "leds[4]" L22;
|
IO_LOC "leds[6]" 85;
|
||||||
IO_LOC "leds[5]" L19;
|
IO_LOC "leds[7]" 86;
|
||||||
IO_LOC "leds[6]" L20;
|
|
||||||
IO_LOC "leds[7]" M21;
|
|
||||||
IO_LOC "leds[8]" N19;
|
|
||||||
IO_LOC "leds[9]" R19;
|
|
||||||
IO_LOC "leds[10]" T18;
|
|
||||||
IO_LOC "leds[11]" AA22;
|
|
||||||
IO_LOC "leds[12]" U18;
|
|
||||||
IO_LOC "leds[13]" V20;
|
|
||||||
IO_LOC "leds[14]" AA21;
|
|
||||||
IO_LOC "leds[15]" AB21;
|
|
||||||
|
|
||||||
|
|
||||||
// 7-Segment Display
|
|
||||||
IO_LOC "seg7dig[0]" E20;
|
|
||||||
IO_LOC "seg7dig[1]" G18;
|
|
||||||
IO_LOC "seg7dig[2]" G20;
|
|
||||||
IO_LOC "seg7dig[3]" F21;
|
|
||||||
IO_LOC "seg7dig[4]" J20;
|
|
||||||
IO_LOC "seg7dig[5]" H21;
|
|
||||||
IO_LOC "seg7dig[6]" H18;
|
|
||||||
IO_LOC "seg7dig[7]" D20;
|
|
||||||
IO_LOC "seg7sel[0]" C19;
|
|
||||||
IO_LOC "seg7sel[1]" B22;
|
|
||||||
IO_LOC "seg7sel[2]" C20;
|
|
||||||
IO_LOC "seg7sel[3]" C21;
|
|
||||||
|
|
||||||
// Switches
|
|
||||||
IO_LOC "sw[0]" AB20;
|
|
||||||
IO_LOC "sw[1]" AB19;
|
|
||||||
IO_LOC "sw[2]" AB18;
|
|
||||||
IO_LOC "sw[3]" AB17;
|
|
|
@ -1,9 +1,6 @@
|
||||||
module demo (
|
module demo (
|
||||||
input clk,
|
input clk,
|
||||||
input [3:0] sw,
|
output [15:0] leds
|
||||||
output [15:0] leds,
|
|
||||||
output [7:0] seg7dig,
|
|
||||||
output [3:0] seg7sel
|
|
||||||
);
|
);
|
||||||
localparam PRESCALE = 20;
|
localparam PRESCALE = 20;
|
||||||
reg [PRESCALE+3:0] counter = 0;
|
reg [PRESCALE+3:0] counter = 0;
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
set JTAG regular_io = false
|
||||||
|
set SSPI regular_io = false
|
||||||
|
set MSPI regular_io = false
|
||||||
|
set READY regular_io = false
|
||||||
|
set DONE regular_io = false
|
||||||
|
set RECONFIG_N regular_io = false
|
||||||
|
set MODE regular_io = false
|
||||||
|
set CRC_check = true
|
||||||
|
set compress = false
|
||||||
|
set encryption = false
|
||||||
|
set security_bit_enable = true
|
||||||
|
set bsram_init_fuse_print = true
|
||||||
|
set download_speed = 250/100
|
||||||
|
set spi_flash_address = 0x00FFF000
|
||||||
|
set format = txt
|
||||||
|
set background_programming = false
|
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
yosys -p "synth_gowin -top demo -vout demo_syn.v" demo.v
|
yosys -p "synth_gowin -top demo -vout demo_syn.v" demo.v
|
||||||
$GOWIN_HOME/bin/gowin -d demo_syn.v -cst demo.cst -sdc demo.sdc -p GW2A55-PBGA484-6 \
|
$GOWIN_HOME/bin/gowin -d demo_syn.v -cst demo.cst -sdc demo.sdc -p GW1NR-9-QFN88-6 -pn GW1NR-LV9QN88C6/I5 -cfg device.cfg -bit -tr -ph -timing -gpa -rpt -warning_all
|
||||||
-warning_all -out demo_out.v -rpt demo.rpt -tr demo_tr.html -bit demo.bit
|
|
||||||
|
|
||||||
# post place&route simulation (icarus verilog)
|
# post place&route simulation (icarus verilog)
|
||||||
if false; then
|
if false; then
|
||||||
|
|
Loading…
Reference in New Issue