Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started tinyfpga_bx.pcf #61

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions data/catzip.pcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set_io q B3
set_io i_clk C8
set_io g A9
set_io b B8
set_io r B7
63 changes: 63 additions & 0 deletions mydoc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
################################################################################
##
## Filename: Makefile
##
## Project: ICO Zip, iCE40 ZipCPU demonsrtation project
##
## Purpose: To coordinate the build of a series of UART testing programs
## for the icoboard.
##
## Creator: Dan Gisselquist, Ph.D.
## Gisselquist Technology, LLC
##
################################################################################
##
## Copyright (C) 2016-2017, Gisselquist Technology, LLC
##
## This program is free software (firmware): you can redistribute it and/or
## modify it under the terms of the GNU General Public License as published
## by the Free Software Foundation, either version 3 of the License, or (at
## your option) any later version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
## for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program. (It's in the $(ROOT)/doc directory. Run make with no
## target there if the PDF file isn't present.) If not, see
## <http://www.gnu.org/licenses/> for a copy.
##
## License: GPL, v3, as defined and found on www.gnu.org,
## http://www.gnu.org/licenses/gpl.html
##
##
################################################################################
##
##
all: helloworld speechfifo

# GNU Make automatic variables (since I can never remember these ...)
# $@ - name of the target
# $< - Name of the first prerequisite
# $^ - Names of all the prerequisites
%.blif: %.v
#yosys -p 'synth_ice40 -blif $@' $<
#yosys -l simple.log -p 'synth_ice40 -blif $@ -json $@' $<
yosys -l simple.log -p 'synth_ice40 -abc9 -blif $@ -json $*.json' $<
%.asc: %.blif %.pcf
#arachne-pnr -d 8k -p $*.pcf -o $@ $<
nextpnr-ice40 --hx8k --pcf $*.pcf --json $*.json --asc $*.asc
%.bin: %.asc
#icetime -d hx8k -c 100 $<
icepack $< $@

.PHONY: helloworld speechfifo
helloworld: helloworld.bin
speechfifo: speechfifo.bin

clean:
rm -f *.blif *.asc *.bin *.json
rm -rf obj_dir

Binary file added mydoc/catzip-icestorm.odt
Binary file not shown.
Binary file added mydoc/catzip-icestorm.pdf
Binary file not shown.
Binary file added mydoc/hello-speech-pp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions mydoc/helloworld.pcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# pin definitions

# 654321
# xxxxxx PMOD2 A
# xxxxxx PMOD2 B
# 654321
#
#PMOD2 A
set_io i_clk C8 #IOT_197 USER_CLK
set_io o_ledg A9 #IOT_194 LED1
#set_io o_ledg[1] B8 #IOT_203 LED2
#set_io o_ledr B7 #IOT_207 LED4

set_io i_rts A1 #IOT_220 PM2-A1 i_rts
set_io o_uart_tx B3 #IOT_214 PM2-A3
set_io i_uart_rx B5 #IOT_223 PM2-A2
set_io o_cts B6 #IOT_208 PM2-A4 o_cts
Loading