Skip to content

Commit 458794e

Browse files
authored
Merge pull request #95 from zapta/master
Added comments to the getting started example.
2 parents af65aab + bd4cc19 commit 458794e

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
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.
611
board = 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
915
top-module = Main

examples/alhambra-ii/getting-started/main.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// This Verilog file define the Main module of this blinky example.
12

23
module Main #(
34
parameter integer N = 3_000_000

examples/alhambra-ii/getting-started/main_tb.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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

38
module testbench;
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
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

25
set_io LED1 37 # output
36
set_io LED2 38 # output
47

5-
set_io CLK 49 # input
8+
set_io CLK 49 # input
69

0 commit comments

Comments
 (0)