VIRTUTECH CONFIDENTIAL Previous - Up - Next
ppc440gx-emac
- Provided by
-
440gx-devices
- Class Hierarchy
-
conf-object → log-object → ppc440gx-emac
- Interfaces Implemented
-
log_object, ethernet_device, io_memory
- Ports
-
Reset (signal)
- Description
-
The ppc440gx-emac class models the ethernet media access controller (EMAC) of the ppc440gx system-on-chip processor.
Attributes
- Attributes inherited from class conf-object
-
attributes, classname, component, iface, name, object_id, queue
- Attributes inherited from class log-object
-
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
- Attribute List
-
- EMACx_GAHT1
- Optional attribute; read/write access; type: Integer.
Group Address Hash Table 1
- EMACx_GAHT2
- Optional attribute; read/write access; type: Integer.
Group Address Hash Table 2
- EMACx_GAHT3
- Optional attribute; read/write access; type: Integer.
Group Address Hash Table 3
- EMACx_GAHT4
- Optional attribute; read/write access; type: Integer.
Group Address Hash Table 4
- EMACx_IAHR
- Optional attribute; read/write access; type: Integer.
Individual Address High
- EMACx_IAHT1
- Optional attribute; read/write access; type: Integer.
Individual Address Hash Table 1
- EMACx_IAHT2
- Optional attribute; read/write access; type: Integer.
Individual Address Hash Table 2
- EMACx_IAHT3
- Optional attribute; read/write access; type: Integer.
Individual Address Hash Table 3
- EMACx_IAHT4
- Optional attribute; read/write access; type: Integer.
Individual Address Hash Table 4
- EMACx_IALR
- Optional attribute; read/write access; type: Integer.
Individual Address Low
- EMACx_IPCR
- Optional attribute; read/write access; type: Integer.
Internal PCS Configuration Register
- EMACx_IPGVR
- Optional attribute; read/write access; type: Integer.
Inter-Packet Gap Value Register
- EMACx_ISER
- Optional attribute; read/write access; type: Integer.
Interrupt Status Enable Register
- EMACx_ISR
- Optional attribute; read/write access; type: Integer.
Interrupt Status Register
- EMACx_LSAH
- Optional attribute; read/write access; type: Integer.
Last Source Address High
- EMACx_LSAL
- Optional attribute; read/write access; type: Integer.
Last Source Address Low
- EMACx_MR0
- Optional attribute; read/write access; type: Integer.
Mode Register 0
- EMACx_MR1
- Optional attribute; read/write access; type: Integer.
Mode Register 1
- EMACx_OCRX
- Optional attribute; read/write access; type: Integer.
Number of Octets Received
- EMACx_OCTX
- Optional attribute; read/write access; type: Integer.
Number of Octets Transmitted
- EMACx_PTR
- Optional attribute; read/write access; type: Integer.
Pause Timer Register
- EMACx_RMR
- Optional attribute; read/write access; type: Integer.
Receive Mode Register
- EMACx_RWMR
- Optional attribute; read/write access; type: Integer.
Receive Low/High Mark Register
- EMACx_STACR
- Optional attribute; read/write access; type: Integer.
STA Control Register
- EMACx_TMR0
- Optional attribute; read/write access; type: Integer.
Transmit Mode Register 0
- EMACx_TMR1
- Optional attribute; read/write access; type: Integer.
Transmit Mode Register 1
- EMACx_TRTR
- Optional attribute; read/write access; type: Integer.
Transmit Request Threshold Register
- EMACx_VTCI
- Optional attribute; read/write access; type: Integer.
VLAN TCI Register
- EMACx_VTPID
- Optional attribute; read/write access; type: Integer.
VLAN TPID Register
- add_crc_on_inject
- Optional attribute; read/write access; type: Integer.
Frames injected using the 'inject_packet' will get a correctly calculated CRC added at the end when this attribute is set to 1 (default). When set to 0, the user has to supply a CRC field with the injected frame. Note that you must always provide room for the CRC field, even when this attribute is set to 1.
- anar
- Optional attribute; read/write access; type: unknown type.
Internal Register
- aner
- Optional attribute; read/write access; type: unknown type.
Internal Register
- anlpar
- Optional attribute; read/write access; type: unknown type.
Internal Register
- bmcr
- Optional attribute; read/write access; type: unknown type.
Internal Register
- bmsr
- Optional attribute; read/write access; type: unknown type.
Internal Register
- cs_conf
- Optional attribute; read/write access; type: unknown type.
Internal Register
- current_packet
- Pseudo attribute; read/write access; type: d|n.
(Obsolete - see the "last-frame" attribute instead). The packet that is currently about to be sent or received. The format is a raw Ethernet frame. This attribute is only valid in Ethernet_Transmit and Ethernet_Receive hap callbacks. It is possible to override the packet by assigning this attribute. The device will drop the current packet if the attribute is set to Nil, or with data of zero length.
- inject_packet
- Pseudo attribute; write-only access; type: Data.
Attribute used to send a packet to the network device. Writing this attribute at any time injects a new packet into the device (without involving the network simulation). Injecting a packet copies the packet data, allowing the caller to reuse or dispose of the buffer used for creating the packet, after the attribute is written.
- last_frame
- Pseudo attribute; read/write access; type: d|n.
The frame that is currently about to be sent or received. The format is a raw Ethernet frame. This attribute is only valid in Ethernet_Transmit and Ethernet_Receive hap callbacks. It is possible to override the packet by assigning this attribute. The device will drop the current packet if the attribute is set to Nil, or with data of zero length.
- link
- Optional attribute; read/write access; type: Object or Nil.
The Ethernet link that the network device is connected to.
- mac_address
- Optional attribute; read/write access; type: s|[i{6}]|n.
Ethernet (MAC) address of the network interface.
- mal
- Required attribute; read/write access; type: Object.
MAL object to be used for packet transfers.
- mode
- Optional attribute; read/write access; type: unknown type.
Internal Register
- model_crc
- Optional attribute; read/write access; type: Integer.
If set to 1, the device will calculate and include an Ethernet CRC on all transmitted frames, and check the CRC on received frames.
- network
- Pseudo attribute; read/write access; type: Object or Nil.
Obsolete attribute. Use link instead.
- poll_reg
- Optional attribute; read/write access; type: unknown type.
Internal Register
- recorder
- Required attribute; read/write access; type: Object.
Recorder object that allows recording and later playback of network traffic to the interface.
- reliability
- Optional attribute; read/write access; type: Integer.
This value determined how reliable an established connection is. If set to N it means that with a probability of 1 out of N a package will be lost (not sent to the receiver). The default value is 0 which means that no packages will be lost.
- reliability_seed
- Optional attribute; read/write access; type: Integer.
The seed value for the randomization of packet loss. See the reliability attribute
- tp10_conf
- Optional attribute; read/write access; type: unknown type.
Internal Register
Command List
- Commands defined by interface log_object
-
log, log-group, log-level, log-size, log-type
- Commands
-
connect | connect to a simulated Ethernet link |
disconnect | disconnect from simulated link |
info | print static information about device |
status | print dynamic information about device |
Command Descriptions
-
<ppc440gx-emac>.connect
- Synopsis
-
<ppc440gx-emac>.connect [-auto] (link|"link-name")
- Description
-
Connect the device to a simulated Ethernet link.
The flag '-auto' is deprecated and shouldn't be used.
- See Also
-
<ppc440gx-emac>.disconnect
-
<ppc440gx-emac>.disconnect
- Synopsis
-
<ppc440gx-emac>.disconnect
- Description
-
Disconnect the device from a simulated Ethernet link.
- See Also
-
<ppc440gx-emac>.connect
-
<ppc440gx-emac>.info
- Synopsis
-
<ppc440gx-emac>.info
- Description
-
Print detailed static information about the simulated device.
-
<ppc440gx-emac>.status
- Synopsis
-
<ppc440gx-emac>.status
- Description
-
Print detailed dynamic information about the simulated device.
VIRTUTECH CONFIDENTIAL Previous - Up - Next