-
Notifications
You must be signed in to change notification settings - Fork 1
Add openFPGALoader command to the README, bitfile for the small fabric and some minor README improvements #2
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
Open
IAmMarcelJung
wants to merge
5
commits into
FPGA-Research:main
Choose a base branch
from
IAmMarcelJung:feat/add-openFPGALoader-option
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d48e219
feat: use separate top modules for each fabric and put them into the …
IAmMarcelJung ee4203d
doc: add the openFPGALoader commands and slightly improve the README
IAmMarcelJung 82097ca
doc: fix the link to the repository
IAmMarcelJung 32336d8
feat: add Vivado bitfile for the 10x10 fabric
IAmMarcelJung 1e65f85
doc: add hint to plug a cable into the UART port
IAmMarcelJung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Binary file not shown.
File renamed without changes.
This file contains hidden or 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,72 @@ | ||
| `timescale 1ns / 1ps | ||
| module top #( | ||
| parameter NUM_USED_IOS = 16 | ||
|
|
||
| ) ( | ||
| input clk, | ||
| input reset, | ||
| input s_clk, | ||
| input s_data, | ||
| input uart_tx_in, | ||
|
|
||
| output [7:0] led, | ||
| input [1:0] sw | ||
| ); | ||
|
|
||
|
|
||
| //Signal declarations | ||
| wire resetn; | ||
| wire locked; | ||
|
|
||
| wire [NUM_USED_IOS-1:0] I_top; | ||
| wire [NUM_USED_IOS-1:0] O_top; | ||
| wire clk_efpga; | ||
| wire heartbeat; | ||
| wire rx_led; | ||
|
|
||
| assign resetn = !reset & locked; | ||
|
|
||
| // reset and enable to dip switches | ||
| assign O_top[1:0] = sw; | ||
| // counter MSB to leds | ||
| assign led[7:2] = I_top[15:9]; | ||
| assign led[1] = rx_led; | ||
| assign led[0] = heartbeat; | ||
|
|
||
| reg [29:0] ctr; | ||
|
|
||
|
|
||
| clk_wiz_0 clk_inst | ||
| ( | ||
| // Clock out ports | ||
| .clk_out1(clk_efpga), | ||
| // Status and control signals | ||
| .reset(reset), | ||
| .locked(locked), | ||
| // Clock in ports | ||
| .clk_in1(clk) | ||
| ); | ||
|
|
||
| always @(posedge clk_efpga) ctr <= ctr + 1'b1; | ||
| assign heartbeat = ctr[25]; | ||
|
|
||
| eFPGA_top #( | ||
| ) eFPGA_top_inst ( | ||
|
|
||
| .NIO_I_top (I_top), | ||
| .NIO_O_top (O_top), | ||
| .CLK (clk_efpga), | ||
| .resetn (resetn), | ||
|
|
||
| //Config related ports | ||
| .SelfWriteStrobe(), | ||
| .SelfWriteData (), | ||
| .s_clk (s_clk), | ||
| .s_data (s_data), | ||
| .ComActive (), | ||
| .Rx (uart_tx_in), | ||
| .ReceiveLED (rx_led) | ||
| ); | ||
|
|
||
|
|
||
| endmodule | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit unsure if it is a good Idea to place these top file just in the Fabric folder.
We should maybe just name it something like emulation_top.v or place them somewhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good point! We could put them instead into a directory called e.g.
toplevel_filesinsidevivado_emulationand then name the filesfabric_x_y_top.v. This way we would have a better separation between the fabric and the emulation setup.