Skip to content

Commit

Permalink
Merge branch 'release/v1.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 3, 2021
2 parents 89ad3f6 + 5ea6550 commit 6fb7ce4
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 95 deletions.
6 changes: 3 additions & 3 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

# -- Get a list of all the verilog files in the src folfer, in ASCII, with
# -- the full path. All these files are used for the simulation
v_nodes = Glob(join(env['PROJECTSRC_DIR'], '*.v'))
v_nodes = Glob(join(env.subst('$PROJECT_SRC_DIR'), '*.v'))
src_sim = [str(f) for f in v_nodes]

# --- Get the Testbench file (there should be only 1)
Expand Down Expand Up @@ -111,7 +111,7 @@
src_synth = [f for f in src_sim if f not in list_tb]

# -- Get the PCF file
src_dir = env.subst('$PROJECTSRC_DIR')
src_dir = env.subst('$PROJECT_SRC_DIR')
PCFs = join(src_dir, '*.pcf')
PCF_list = Glob(PCFs)
PCF = ''
Expand Down Expand Up @@ -216,7 +216,7 @@
vcd_file = env.VCD(sout)

target_sim = env.Alias('sim', vcd_file, 'gtkwave {0} {1}.gtkw'.format(
vcd_file[0], join(env['PROJECTSRC_DIR'], SIMULNAME)))
vcd_file[0], join(env.subst('$PROJECT_SRC_DIR'), SIMULNAME)))
AlwaysBuild(target_sim)

#
Expand Down
32 changes: 32 additions & 0 deletions examples/counter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
How to build PlatformIO based project
=====================================

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
2. Download [development platform with examples](https://github.com/platformio/platform-lattice_ice40/archive/develop.zip)
3. Extract ZIP archive
4. Run these commands:

```shell
# Change directory to example
$ cd platform-lattice_ice40/examples/counter

# Build project
$ pio run

# Verify project
$ pio run --target verify

# Launch simulation
$ pio run --target sim

# Launch time analysis
$ pio run --target time

# Upload bitstream into the FPGA
$ pio run --target upload

# Clean build files
$ pio run --target clean
```

NOTE: [GTKwave](http://gtkwave.sourceforge.net) is required for simulation
43 changes: 0 additions & 43 deletions examples/counter/README.rst

This file was deleted.

32 changes: 32 additions & 0 deletions examples/leds/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
How to build PlatformIO based project
=====================================

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
2. Download [development platform with examples](https://github.com/platformio/platform-lattice_ice40/archive/develop.zip)
3. Extract ZIP archive
4. Run these commands:

```shell
# Change directory to example
$ cd platform-lattice_ice40/examples/leds

# Build project
$ pio run

# Verify project
$ pio run --target verify

# Launch simulation
$ pio run --target sim

# Launch time analysis
$ pio run --target time

# Upload bitstream into the FPGA
$ pio run --target upload

# Clean build files
$ pio run --target clean
```

NOTE: [GTKwave](http://gtkwave.sourceforge.net) is required for simulation
43 changes: 0 additions & 43 deletions examples/leds/README.rst

This file was deleted.

10 changes: 4 additions & 6 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@
"FPGA"
],
"engines": {
"platformio": "<5"
"platformio": "^5"
},
"repository": {
"type": "git",
"url": "https://github.com/platformio/platform-lattice_ice40.git"
},
"version": "1.2.3",
"packageRepositories": [
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
"http://dl.platformio.org/packages/manifest.json"
],
"version": "1.2.4",
"packages": {
"toolchain-icestorm": {
"type": "toolchain",
"owner": "platformio",
"version": "~1.10.0"
},
"toolchain-iverilog": {
"type": "toolchain",
"owner": "platformio",
"version": "~1.1.0"
}
}
Expand Down

0 comments on commit 6fb7ce4

Please sign in to comment.