File tree Expand file tree Collapse file tree
examples/alhambra-ii/getting-started Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11; Apio project file.
2+ ;
3+ ; This file defines the Apio project configuration.
4+ ; See https://fpgawars.github.io/apio/docs/project-file for available
5+ ; options.
26
7+ ; This project has a single Apio env (aka target) called 'default'.
38[env:default]
49
5- ; Board id.
10+ ; Board id. This project uses the Alhambra-ii board.
611board = alhambra-ii
712
8- ; Top module name (in main.v)
13+ ; The name of the top Verilog module to build. This
14+ ; is the module 'Main' in main.v
915top-module = Main
Original file line number Diff line number Diff line change 1+ // This Verilog file define the Main module of this blinky example.
12
23module Main #(
34 parameter integer N = 3_000_000
Original file line number Diff line number Diff line change 1+ // A testbench for automatic testing of the module verilog Main.
2+ // To run the testbench in batch mode, use the Apio 'test' command.
3+ // To run the testbench with graphical view of the signals, run the
4+ // Apio 'sim' (as in simulate) command.
5+
16`timescale 1ns / 1ps
27
38module testbench ;
Original file line number Diff line number Diff line change 1+ # This file defines the mapping of the FPGA pin number to
2+ # signal names as used in main.v. We included here only the
3+ # signals that actually used by this example.
14
25set_io LED1 37 # output
36set_io LED2 38 # output
47
5- set_io CLK 49 # input
8+ set_io CLK 49 # input
69
You can’t perform that action at this time.
0 commit comments