Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

MAC error

Altera_Forum
Honored Contributor II
999 Views

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
0 Kudos
1 Reply
BMous2
Beginner
262 Views

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"

0 Kudos
Reply