forked from f4pga/f4pga-arch-defs
-
Notifications
You must be signed in to change notification settings - Fork 2
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 f4pga#1466 from antmicro/socs_on_nexys_video
PicoSoC and Murax for Nexys Video
- Loading branch information
Showing
31 changed files
with
1,077 additions
and
156 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
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,40 @@ | ||
set_io clk W5 | ||
|
||
set_io tx A18 | ||
set_io rx B18 | ||
|
||
# in[0:15] correspond with SW0-SW15 on the basys3 | ||
set_io sw[0] V17 | ||
set_io sw[1] V16 | ||
set_io sw[2] W16 | ||
set_io sw[3] W17 | ||
set_io sw[4] W15 | ||
set_io sw[5] V15 | ||
set_io sw[6] W14 | ||
set_io sw[7] W13 | ||
set_io sw[8] V2 | ||
set_io sw[9] T3 | ||
set_io sw[10] T2 | ||
set_io sw[11] R3 | ||
set_io sw[12] W2 | ||
set_io sw[13] U1 | ||
set_io sw[14] T1 | ||
set_io sw[15] R2 | ||
|
||
# out[0:15] correspond with LD0-LD15 on the basys3 | ||
set_io io_led[0] U16 | ||
set_io io_led[1] E19 | ||
set_io io_led[2] U19 | ||
set_io io_led[3] V19 | ||
set_io io_led[4] W18 | ||
set_io io_led[5] U15 | ||
set_io io_led[6] U14 | ||
set_io io_led[7] V14 | ||
set_io io_led[8] V13 | ||
set_io io_led[9] V3 | ||
set_io io_led[10] W3 | ||
set_io io_led[11] U3 | ||
set_io io_led[12] P3 | ||
set_io io_led[13] N3 | ||
set_io io_led[14] P1 | ||
set_io io_led[15] L1 |
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 @@ | ||
create_clock -period 10 clk100 |
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,2 @@ | ||
create_clock -period 10 clk100 | ||
create_clock -period 20 clk50 |
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,48 @@ | ||
`timescale 1ns / 1ps | ||
|
||
module toplevel( | ||
input clk, | ||
output tx, | ||
input rx, | ||
input [15:0] sw, | ||
output [15:0] io_led | ||
); | ||
|
||
wire clk100; | ||
BUFG bufg(.I(clk), .O(clk100)); | ||
|
||
// BUFGCE as divide by 2 | ||
reg clk50_ce; | ||
always @(posedge clk100) | ||
clk50_ce <= !clk50_ce; | ||
|
||
wire clk50; | ||
BUFGCE bufg50 (.I(clk), .CE(clk50_ce), .O(clk50)); | ||
|
||
wire [31:0] io_gpioA_read; | ||
wire [31:0] io_gpioA_write; | ||
wire [31:0] io_gpioA_writeEnable; | ||
wire io_mainClk; | ||
wire io_jtag_tck; | ||
wire io_jtag_tdi; | ||
wire io_jtag_tdo; | ||
wire io_jtag_tms; | ||
wire io_uart_txd; | ||
wire io_uart_rxd; | ||
|
||
assign io_led = io_gpioA_write[15: 0]; | ||
assign io_gpioA_read[15:0] = sw; | ||
|
||
Murax murax ( | ||
.io_asyncReset(0), | ||
.io_mainClk (clk50), | ||
.io_jtag_tck(1'b0), | ||
.io_jtag_tdi(1'b0), | ||
.io_jtag_tms(1'b0), | ||
.io_gpioA_read (io_gpioA_read), | ||
.io_gpioA_write (io_gpioA_write), | ||
.io_gpioA_writeEnable(io_gpioA_writeEnable), | ||
.io_uart_txd(tx), | ||
.io_uart_rxd(rx) | ||
); | ||
endmodule |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
create_clock -period 10 clk100 |
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,2 @@ | ||
create_clock -period 10 clk100 | ||
create_clock -period 20 clk50 |
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,40 @@ | ||
`timescale 1ns / 1ps | ||
|
||
module top ( | ||
input clk, | ||
output tx, | ||
input rx, | ||
input [7:0] sw, | ||
output [7:0] led | ||
); | ||
|
||
wire [31:0] io_gpioA_read; | ||
wire [31:0] io_gpioA_write; | ||
wire [31:0] io_gpioA_writeEnable; | ||
wire io_mainClk; | ||
wire io_jtag_tck; | ||
wire io_jtag_tdi; | ||
wire io_jtag_tdo; | ||
wire io_jtag_tms; | ||
wire io_uart_txd; | ||
wire io_uart_rxd; | ||
|
||
assign led = io_gpioA_write[7: 0]; | ||
assign io_gpioA_read[7:0] = sw; | ||
|
||
wire clk_bufg; | ||
BUFG bufg (.I(clk), .O(clk100)); | ||
|
||
Murax murax ( | ||
.io_asyncReset(0), | ||
.io_mainClk (clk100), | ||
.io_jtag_tck(1'b0), | ||
.io_jtag_tdi(1'b0), | ||
.io_jtag_tms(1'b0), | ||
.io_gpioA_read (io_gpioA_read), | ||
.io_gpioA_write (io_gpioA_write), | ||
.io_gpioA_writeEnable(io_gpioA_writeEnable), | ||
.io_uart_txd(tx), | ||
.io_uart_rxd(rx) | ||
); | ||
endmodule |
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,48 @@ | ||
`timescale 1ns / 1ps | ||
|
||
module top ( | ||
input clk, | ||
output tx, | ||
input rx, | ||
input [7:0] sw, | ||
output [7:0] led | ||
); | ||
|
||
wire [31:0] io_gpioA_read; | ||
wire [31:0] io_gpioA_write; | ||
wire [31:0] io_gpioA_writeEnable; | ||
wire io_mainClk; | ||
wire io_jtag_tck; | ||
wire io_jtag_tdi; | ||
wire io_jtag_tdo; | ||
wire io_jtag_tms; | ||
wire io_uart_txd; | ||
wire io_uart_rxd; | ||
|
||
assign led = io_gpioA_write[7: 0]; | ||
assign io_gpioA_read[7:0] = sw; | ||
|
||
wire clk_bufg; | ||
BUFG bufg (.I(clk), .O(clk100)); | ||
|
||
// BUFGCE as divide by 2 | ||
reg clk50_ce; | ||
always @(posedge clk100) | ||
clk50_ce <= !clk50_ce; | ||
|
||
wire clk50; | ||
BUFGCE bufg50 (.I(clk), .CE(clk50_ce), .O(clk50)); | ||
|
||
Murax murax ( | ||
.io_asyncReset(0), | ||
.io_mainClk (clk50), | ||
.io_jtag_tck(1'b0), | ||
.io_jtag_tdi(1'b0), | ||
.io_jtag_tms(1'b0), | ||
.io_gpioA_read (io_gpioA_read), | ||
.io_gpioA_write (io_gpioA_write), | ||
.io_gpioA_writeEnable(io_gpioA_writeEnable), | ||
.io_uart_txd(tx), | ||
.io_uart_rxd(rx) | ||
); | ||
endmodule |
Oops, something went wrong.