-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
124 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
Check failure on line 1 in FindNonResettableFFs.py GitHub Actions / Check License headers
|
||
|
||
text = 'amo_op_e' | ||
path = '/scratch/bsc24f10/Documents/MonocerosGithubRepo/monoceros/snitch_cluster/hw' | ||
|
||
def searchText(path): | ||
|
||
os.chdir(path) | ||
files = os.listdir(path) | ||
#print(files) | ||
|
||
for file_name in files: | ||
abs_path = os.path.join(path, file_name) | ||
#print('is '+ abs_path + ' directory? : ') | ||
if os.path.isdir(abs_path): | ||
#print("Directory found: " + abs_path) | ||
searchText(abs_path) | ||
|
||
if os.path.isfile(abs_path): | ||
#print("File found: " + abs_path) | ||
with open(abs_path, 'r') as f: | ||
if text in f.read(): | ||
final_path = os.path.abspath(file_name) | ||
print(text + " word found in this path " + final_path) | ||
pass | ||
searchText(path) | ||
print("DONE") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,11 @@ | |
// Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
// SPDX-License-Identifier: SHL-0.51 | ||
|
||
`include "common_cells/registers.svh" | ||
// Author: Florian Zaruba <[email protected]> | ||
|
||
`include "common_cells/registers.svh" | ||
`include "common_cells/assertions.svh" | ||
|
||
// MMU w/ L0 TLB | ||
module snitch_l0_tlb import snitch_pkg::*; #( | ||
parameter int unsigned NrEntries = 1, | ||
|
@@ -66,8 +68,8 @@ module snitch_l0_tlb import snitch_pkg::*; #( | |
l0_pte_t pte; | ||
|
||
`FFAR(tag_valid_q, tag_valid_d, '0, clk_i, rst_i) | ||
`FFNR(tag_q, tag_d, clk_i) | ||
`FFNR(pte_q, pte_d, clk_i) | ||
`FFAR(tag_q, tag_d, '0, clk_i, rst_i) | ||
`FFAR(pte_q, pte_d, '0, clk_i, rst_i) | ||
|
||
logic [NrEntries-1:0] hit; | ||
logic miss_d, miss_q; // we got a miss | ||
|
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
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 |
---|---|---|
|
@@ -26,10 +26,14 @@ | |
// Author: Florian Zaruba <[email protected]> | ||
// Author: Fabian Schuiki <[email protected]> | ||
|
||
`include "common_cells/registers.svh" | ||
`include "common_cells/assertions.svh" | ||
|
||
(* no_ungroup *) | ||
(* no_boundary_optimization *) | ||
module snitch_clkdiv2 ( | ||
input logic clk_i, | ||
input logic rst_ni, | ||
input logic test_mode_i, | ||
input logic bypass_i, | ||
output logic clk_o | ||
|
@@ -53,7 +57,8 @@ module snitch_clkdiv2 ( | |
assign clk_div_del = clk_div; | ||
`endif | ||
|
||
always_ff @(posedge clk_i) clk_div <= ~clk_div; | ||
`FF(clk_div, ~clk_div, '0, clk_i, rst_ni) | ||
|
||
assign clk_o = (test_mode_i | bypass_i) ? clk_i : clk_div_del; | ||
|
||
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
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.