-
Notifications
You must be signed in to change notification settings - Fork 83
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 #123 from ska-sa/devel
Asymmetric BRAM and Red Pitaya compile Fixes
- Loading branch information
Showing
16 changed files
with
466 additions
and
52 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
Binary file added
BIN
+338 KB
...ibrary/hdl_sources/forty_gbe/cont_microblaze/EMB123701U1R1-v3.20.58-0-g8c875c6-master.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
jasper_library/hdl_sources/forty_gbe/cont_microblaze/EMB123701U1R1.elf
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 |
---|---|---|
@@ -1 +1 @@ | ||
EMB123701U1R1-v3.20.36-0-g00f7671-master.elf | ||
EMB123701U1R1-v3.20.58-0-g8c875c6-master.elf |
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,55 @@ | ||
//============================================================================// | ||
// // | ||
// Parameterize Counter // | ||
// // | ||
// Module name: counter // | ||
// Desc: parameterized counter, counts up/down in any increment // | ||
// Date: Oct 2011 // | ||
// Developer: Rurik Primiani & Wesley New // | ||
// Adapted by: Mathews Chirindo // | ||
// Date: Jan 2020 // | ||
// Licence: GNU General Public License ver 3 // | ||
// Notes: // | ||
// // | ||
//============================================================================// | ||
|
||
module counter #( | ||
//============================== | ||
// Top level block parameters | ||
//============================== | ||
parameter DATA_WIDTH = 32, // number of bits in counters | ||
parameter COUNT_FROM = 0, // start with this number | ||
parameter COUNT_TO = 2**(DATA_WIDTH), // value to count to in CL case | ||
parameter STEP = 1 // negative or positive, sets direction | ||
) ( | ||
//=============== | ||
// Input Ports | ||
//=============== | ||
input user_clk, | ||
input en, | ||
input user_rst, | ||
|
||
//=============== | ||
// Output Ports | ||
//=============== | ||
output reg [DATA_WIDTH-1:0] count_out, | ||
output we | ||
); | ||
|
||
assign we = 1'b1; | ||
|
||
// Synchronous logic | ||
always @(posedge user_clk) begin | ||
// if ACTIVE_LOW_RST is defined then reset on a low | ||
// this should be defined on a system-wide basis | ||
if (`ifdef ACTIVE_LOW_RST user_rst `else !user_rst `endif) begin | ||
if (en == 1) begin | ||
count_out <= count_out + STEP; | ||
end | ||
end | ||
else begin | ||
count_out <= COUNT_FROM; | ||
end // else: if(rst != 0) | ||
end | ||
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
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
Oops, something went wrong.