Skip to content

SynthesijerでDE0nanoにWIZ830MJを接続してみた

SynthesijerでDE0nanoにWIZ830MJを接続してみた

scott

Published January 02, 2023

Original author: わさらぼ · JapanOriginal source (new tab)

SynthesijerでDE0nanoにWIZ830MJを接続してみた

Components

Hardware components

Project description

The W5300 on the WIZ830MJ has an interface that is highly compatible with the processor, with control/status registers and packet storage memory mapped to the memory address space.

If you're a legitimate Altera user, you're probably going to hang on to Nios II, but first (for me) I wrote a control circuit in Synthesijer.

The control code is ↓.
https://github.com/miyo/de0nano/blob/master/wiz830mj/WIZ830MJ_Test.java

The W5300 I/F is equivalent to SRAM, so it can be mapped to a Java array, but the read/write methods are defined so that CS, WR, and RD delays can be appropriately emulated. By the way, the read/write data is byte because it is troublesome to solder all the 16bit bus, so 8bit is connected.

The test method actually controls (initializes) the W5300. Here, only network settings are made so that ping can be confirmed.

When synthesizing with Quartus II, use the code converted to HDL by Synthesijer, wiz830mj_iface.vhd corresponding to WIZ830MJ_Iface ( WIZ830MJ_Iface.java ) instantiated in the Java code, and top.vhd which is the top module .

Also, the pin constraint is wiz830mj_test.qsf and the clock constraint is wiz830mj_test.sdc .

After synthesizing and writing sof, ping returned safely. You can also see that the MAC address can be obtained with arp.

SynthesijerでDE0nanoにWIZ830MJを接続してみた

Now, let's play with TCP and UDP.

Documents

Comments

Comments