mirror of
https://github.com/olofk/serv.git
synced 2026-02-27 00:39:48 +00:00
Move to board-specific top-level and file set
This commit is contained in:
committed by
Olof Kindgren
parent
54d5d65b62
commit
0375ba896f
@@ -1,5 +1,8 @@
|
||||
# 20 MHz clock input
|
||||
set_io i_clk 15
|
||||
|
||||
# Onboard LED 1
|
||||
set_io q 56
|
||||
# Onboard LED 1-4
|
||||
set_io o_led1 56
|
||||
set_io o_led2 57
|
||||
set_io o_led3 59
|
||||
set_io o_led4 60
|
||||
15
servant.core
15
servant.core
@@ -8,10 +8,6 @@ filesets:
|
||||
file_type : verilogSource
|
||||
depend : ["fusesoc:utils:generators"]
|
||||
|
||||
service_no_pll:
|
||||
files: [servant/service_no_pll.v]
|
||||
file_type : verilogSource
|
||||
|
||||
mem_files:
|
||||
files:
|
||||
- sw/blinky.hex : {copyto : blinky.hex}
|
||||
@@ -85,7 +81,11 @@ filesets:
|
||||
icesugar : {files: [data/icesugar.pcf : {file_type : PCF}]}
|
||||
alhambra : {files: [data/alhambra.pcf : {file_type : PCF}]}
|
||||
icestick : {files: [data/icestick.pcf : {file_type : PCF}]}
|
||||
go_board : {files: [data/go_board.pcf : {file_type : PCF}]}
|
||||
|
||||
go_board:
|
||||
files:
|
||||
- data/go_board.pcf : {file_type : PCF}
|
||||
- servant/service_go_board.v : {file_type : verilogSource}
|
||||
|
||||
lx9_microboard:
|
||||
files:
|
||||
@@ -398,13 +398,12 @@ targets:
|
||||
|
||||
go_board:
|
||||
default_tool : icestorm
|
||||
filesets : [mem_files, soc, service_no_pll, go_board]
|
||||
parameters : [memfile=blinky.hex, memsize=7168]
|
||||
filesets : [mem_files, soc, go_board]
|
||||
tools:
|
||||
icestorm:
|
||||
nextpnr_options : [--hx1k, --package, vq100, --freq, 20]
|
||||
pnr: next
|
||||
toplevel : service
|
||||
toplevel : service_go_board
|
||||
|
||||
parameters:
|
||||
PLL:
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
`default_nettype none
|
||||
module service
|
||||
module service_go_board
|
||||
(input wire i_clk,
|
||||
output wire q);
|
||||
output wire o_led1,
|
||||
output wire o_led2 = 1'b0,
|
||||
output wire o_led3 = 1'b0,
|
||||
output wire o_led4 = 1'b0);
|
||||
|
||||
parameter memfile = "zephyr_hello.hex";
|
||||
parameter memsize = 7168;
|
||||
parameter memfile = "blinky.hex";
|
||||
parameter memsize = 512;
|
||||
|
||||
// Pull reset high for 64 clock cycles. Use the 7th bit as the reset signal.
|
||||
// Assert reset for 64 clock cycles. Use the 7th bit as the reset signal.
|
||||
reg [6:0] rst_count;
|
||||
wire rst_r = !rst_count[6];
|
||||
|
||||
@@ -22,6 +25,6 @@ module service
|
||||
servant
|
||||
(.wb_clk (i_clk),
|
||||
.wb_rst (rst_r),
|
||||
.q (q));
|
||||
.q (o_led1));
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user