Forum Discussion
Altera_Forum
Honored Contributor
14 years agoMAC error
I got this error in Opencores 10/100/1000. Please help me fix it: :)
duram# (36,`MAC_RX_FF_DEPTH,"M4K") U_duram( // Error here
.data_a (Din ),
.wren_a (Wr_en ),
.address_a (Add_wr ),
.address_b (Add_rd ),
.clock_a (Clk_MAC ),
.clock_b (Clk_SYS ),
.q_b (Dout )); Error (10170): Verilog HDL syntax error at MAC_rx_FF.v(720) near text ","; expecting ".", or an operand
1 Reply
- BMous2
New Contributor
The problem is that `MAC_RX_FF_DEPTH is not defined.
The define for it is set in a file called header.v in the same directory in the project.
If you can't find it just create a file and add the following to it:
`define MAC_SOURCE_REPLACE_EN 1
`define MAC_TARGET_CHECK_EN 1
`define MAC_BROADCAST_FILTER_EN 1
`define MAC_TX_FF_DEPTH 9
`define MAC_RX_FF_DEPTH 9
At last in the files you're getting the errors in just add:
`include "header.v"