-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from fbelavenuto/make-bitstream
Organizing documentation and files.
- Loading branch information
Showing
51 changed files
with
199 additions
and
61,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Build release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Check cache | ||
- name: Docker images cache | ||
id: docker-image-cache | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: ${{ runner.os }}-cache | ||
|
||
# Download docker images if not cached | ||
- name: Download docker images | ||
if: steps.docker-image-cache.outputs.cache-hit != 'true' | ||
run: | | ||
docker pull fbelavenuto/8bitcompilers | ||
docker pull fbelavenuto/xilinxise | ||
# Build files | ||
- name: Build files | ||
id: build | ||
run: | | ||
source driver/VERSION.INC | ||
echo "DRV_VERSION=${VER_MAIN}.${VER_SEC}.${VER_REV}" >> $GITHUB_OUTPUT | ||
NXT_VERSION=`<Nextor/VERSION` | ||
echo "NXT_VERSION=${NXT_VERSION}" >> $GITHUB_OUTPUT | ||
echo Building Driver | ||
docker run --rm -it -v $PWD/driver:/src fbelavenuto/8bitcompilers N80 DRIVER.ASM DRIVER.BIN | ||
echo Building ROM | ||
docker run --rm -it -v $PWD:/src fbelavenuto/8bitcompilers mknexrom Nextor/Nextor-${NXT_VERSION}.base.dat driver/SDMAPPER.ROM /d:driver/DRIVER.BIN /m:Nextor/Mapper.ASCII16.bin | ||
echo Building Updater | ||
docker run --rm -it -v $PWD/updater:/src fbelavenuto/8bitcompilers N80 SDMUPD.ASM SDMUPD.COM | ||
echo Building CPLD bitstream | ||
docker run --rm -it -v $PWD/CPLD:/workdir fbelavenuto/xilinxise make | ||
# Pack files | ||
- name: Pack | ||
shell: bash | ||
run: | | ||
tar czvf SDMapper_${{ steps.build.outputs.DRV_VERSION }}_Nextor_${{ steps.build.outputs.NXT_VERSION }}.tar.gz \ | ||
driver/SDMAPPER.ROM CPLD/sdmapper.jed Nextor/sysfiles/* | ||
# Upload artifact | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Images | ||
path: | | ||
SDMapper_${{ steps.build.outputs.DRV_VERSION }}_Nextor_${{ steps.build.outputs.NXT_VERSION }}.tar.gz | ||
retention-days: 5 | ||
|
||
# Publish a release if is a tag | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
driver/SDMAPPER.ROM | ||
CPLD/sdmapper.jed | ||
Nextor/sysfiles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vhdl work "src/sd.vhd" | ||
vhdl work "src/megamapper.vhd" | ||
vhdl work "src/exp_slot.vhd" | ||
vhdl work "src/sdmapper.vhd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
set -tmpdir "/tmp" | ||
set -xsthdpdir "xst" | ||
run | ||
-ifn sdmapper.prj | ||
-ifmt mixed | ||
-ofn sdmapper | ||
-ofmt NGC | ||
-p xc9500xl | ||
-top sdmapper | ||
-opt_mode Speed | ||
-opt_level 2 | ||
-iuc NO | ||
-keep_hierarchy Yes | ||
-netlist_hierarchy As_Optimized | ||
-rtlview Yes | ||
-hierarchy_separator / | ||
-bus_delimiter <> | ||
-case Maintain | ||
-verilog2001 YES | ||
-fsm_extract YES -fsm_encoding Auto | ||
-safe_implementation No | ||
-mux_extract Yes | ||
-resource_sharing YES | ||
-iobuf YES | ||
-pld_mp YES | ||
-pld_xp YES | ||
-pld_ce YES | ||
-wysiwyg NO | ||
-equivalent_register_removal YES |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.