Skip to content

Commit

Permalink
WIP small changes to test stuff out
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Roth committed Nov 28, 2024
1 parent 5f1f496 commit 381a1cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Bender.lock
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ packages:
dependencies:
- common_cells
idma:
revision: 85c45ac5d6dde9d3a93e47c5e44f25b5a1d34790
revision: 864e6af3155c99ea616121645546df40d872b718
version: null
source:
Git: https://github.com/pulp-platform/iDMA.git
Expand Down
2 changes: 1 addition & 1 deletion hw/cheshire_idma_wrap.sv
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ module cheshire_idma_wrap #(
localparam int unsigned sMMU_FillPolicyTLB = 1; //

Check warning on line 343 in hw/cheshire_idma_wrap.sv

View workflow job for this annotation

GitHub Actions / verible-verilog-lint

[verible-verilog-lint] hw/cheshire_idma_wrap.sv#L343

Localparam name does not match the naming convention defined by regex pattern: (([A-Z0-9]+[a-z0-9]*)+(_[0-9]+)?) [Style: constants] [parameter-name-style]
Raw output
message:"Localparam name does not match the naming convention defined by regex pattern: (([A-Z0-9]+[a-z0-9]*)+(_[0-9]+)?) [Style: constants] [parameter-name-style]" location:{path:"hw/cheshire_idma_wrap.sv" range:{start:{line:343 column:27}}} severity:WARNING source:{name:"verible-verilog-lint" url:"https://github.com/chipsalliance/verible"}
localparam int unsigned sMMU_ReplacementPolicyTLB = 1;

Check warning on line 344 in hw/cheshire_idma_wrap.sv

View workflow job for this annotation

GitHub Actions / verible-verilog-lint

[verible-verilog-lint] hw/cheshire_idma_wrap.sv#L344

Localparam name does not match the naming convention defined by regex pattern: (([A-Z0-9]+[a-z0-9]*)+(_[0-9]+)?) [Style: constants] [parameter-name-style]
Raw output
message:"Localparam name does not match the naming convention defined by regex pattern: (([A-Z0-9]+[a-z0-9]*)+(_[0-9]+)?) [Style: constants] [parameter-name-style]" location:{path:"hw/cheshire_idma_wrap.sv" range:{start:{line:344 column:27}}} severity:WARNING source:{name:"verible-verilog-lint" url:"https://github.com/chipsalliance/verible"}

`SMMU_TYPEDEF_GEN_SV57(va_t, pa_t, pte_t)
`SMMU_TYPEDEF_GEN_SV48(va_t, pa_t, pte_t)
`SMMU_TYPEDEF_GEN_DEFAULT(va_t, pa_t, options_t, sMMU_StreamIDSize, sMMU_MaxByteTransferWidth, sMMU_MaxPageTransferWidth, sMMU_PageSize)

Check warning on line 347 in hw/cheshire_idma_wrap.sv

View workflow job for this annotation

GitHub Actions / verible-verilog-lint

[verible-verilog-lint] hw/cheshire_idma_wrap.sv#L347

Line length exceeds max: 100; is: 138 [Style: line-length] [line-length]
Raw output
message:"Line length exceeds max: 100; is: 138 [Style: line-length] [line-length]" location:{path:"hw/cheshire_idma_wrap.sv" range:{start:{line:347 column:101}}} severity:WARNING source:{name:"verible-verilog-lint" url:"https://github.com/chipsalliance/verible"}

/* Variable */
Expand Down
6 changes: 3 additions & 3 deletions sw/include/dif/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@
} \
\
inline void NAME##_dma_smmu_config(uint64_t exe, uint64_t bare, uint64_t update_tlb, uint64_t user){ \
*(NAME##_dma_smmu_conf_ptr()) = ((update_tlb & 1) << 3) + ((bare & 1) << 2) + ((user & 1) << 1) + (exe & 1); \
*(NAME##_dma_smmu_conf_ptr()) = ((update_tlb & 1) << IDMA_REG64_2D_SMMU_F_UPDATE_TLB_BIT) | ((bare & 1) << IDMA_REG64_2D_SMMU_F_BARE_BIT) | ((user & 1) << IDMA_REG64_2D_SMMU_F_USER_BIT) | ((exe & 1) << IDMA_REG64_2D_SMMU_F_EXE_BIT); \
} \
\
inline void NAME##_dma_smmu_set_pt_root(uint64_t root_adr){ \
*(NAME##_dma_smmu_pt_root_high_ptr()) = (uint32_t) ((root_adr >> 32) & 0x00000000FFFFFFFF); \
*(NAME##_dma_smmu_pt_root_low_ptr()) = (uint32_t) (root_adr & 0x00000000FFFFFFFF); \
*(NAME##_dma_smmu_pt_root_high_ptr()) = (uint64_t) ((root_adr >> 32) & 0x00000000FFFFFFFF); \
*(NAME##_dma_smmu_pt_root_low_ptr()) = (uint64_t) (root_adr & 0x00000000FFFFFFFF); \
} \
\
inline uint64_t NAME##_dma_get_status(void) { \
Expand Down
2 changes: 1 addition & 1 deletion sw/tests/smmu_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(void) {
sys_dma_memcpy((uintptr_t)(void *)dst, (uintptr_t)(void *)src, sizeof(src_cached));

// Write Destination Adress
uart_write_str(&__base_uart, dst, sizeof(dst));
uart_write_str(&__base_uart, dst, sizeof(dst_cached));
uart_write_flush(&__base_uart);

// Write the end Message
Expand Down

0 comments on commit 381a1cd

Please sign in to comment.