Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAvalon OpenCores Ethernet MAC and QII version 10 and higher
Hi,
I'm migrating my design to QII 10.1sp1 (after an unsuccessful try with v11.0) and can observe a warning with SOPC builder about the parameter SYS_CLOCK_RATE:CLOCK_DOMAIN that must be of type Integer but is of type String. Shall I simply modify the "_hw.tcl" to correct it? Thanks in advance, Fred15 Replies
- Altera_Forum
Honored Contributor
Attach signaltap on rx/tx lines and also check management interface. Are You sure the PHY is initialized?
- Altera_Forum
Honored Contributor
The VISIBLE property of this parameter is set to false. That must explain why you think you don't have such parameter. Have a look to the file (its name is 'eth_ocm_hw.tcl') and you will see what I mean.
However, it seems to be used only to do a 'set_module_assignment' of something called 'embeddedsw.CMacro.SYS_CLOCK_RATE. Because I'm using a Linux/MMU kernel, I don't think this is used and, thus, it doesn't explain this issue. I can add some printk() in the driver to see what's happening, but I can see the RX/TX packets counters growing while the errors counters remain null. That is very strange... - Altera_Forum
Honored Contributor
I have used OpenCores MAC with V8 and V9sp2. I checked now that project, but I didn't have the SYS_CLOCK_RATE parameter.
Anyway, what is in _hw.tcl is for user configuration of parameters that are anyhow defined in HDL. I'd suggest you browse source files to find out the correct format and value required. You possibly can set it up to a fixed configuration. Can you investigate further where is the failure? Are you using Nios with an OS? Can you check if mac/phy initialization is performed correctly and if incoming packets reach the mac? - Altera_Forum
Honored Contributor
Well, I have changed the line
add_parameter SYS_CLOCK_RATE STRING "0" for add_parameter SYS_CLOCK_RATE INTEGER 0 and the warning has disappeared. However, the IP seems NOT working anymore once the design regenerated (tcpdump can't see anymore the ping packets issued from or to the system). Has anyone succeeded to make OpenCore Eth working with QII v10sp1? -- Fred - Altera_Forum
Honored Contributor
I've done just a small number of Avalon-ST cores, but in my opinion - yes, You can edit it in tcl.
On the other hand, I am not sure if You'll find it in tcl. It is probably set in VHD file :)