Open Kreijstal opened 1 month ago
You haven't compiled the package definition. -I
just sets the search path for include files; it won't automatically include anything.
We could do with a better error message in this situation, so I'll label this as an enhancement.
Okay, yeah, I am new to iverilog I think that was the problem I thought syntax error
meant there was something wrong with syntax itself but it seems it is a semantic error, not a syntactic one, right?
Not sure if I should make a new issue or edit this one but I get this now:
// Register width information to check illegal writes
parameter logic [3:0] STUDENT_DMA_PERMIT [6] = '{
4'b 0001, // index[0] STUDENT_DMA_STATUS
4'b 1111, // index[1] STUDENT_DMA_NOW_DADR
4'b 0001, // index[2] STUDENT_DMA_CMD
4'b 1111, // index[3] STUDENT_DMA_LENGTH
4'b 1111, // index[4] STUDENT_DMA_SRC_ADR
4'b 1111 // index[5] STUDENT_DMA_DST_ADR
};
with the error:
error: parameter declared outside parameter port list must have a default value.
But I think there is already a default value..
Sorry, unpacked array parameters are not yet supported. See #846.
So, I have the following testbench:
I am running it like this:
But already at line 5, iverilog says that I have a syntax error... However this seems to work on the other sims, what is the problem?