OpenCores
URL https://opencores.org/ocsvn/esoc/esoc/trunk

Subversion Repositories esoc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /esoc
    from Rev 48 to Rev 49
    Reverse comparison

Rev 48 → Rev 49

/trunk/Simulation/Scripts/esoc_rgmii_test_stim.txt
3,7 → 3,7
-- P0 P1 P2 P3 P4 P5 P6 P7
--
--==========================================================
-- ETHERNET PACKETS for PORT 0 (P0)
-- ETHERNET PACKETS for PORT (P0)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
15,38 → 15,39
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 2 (P2)
-- ETHERNET PACKETS for PORT (P2)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 3 (P3)
-- ETHERNET PACKETS for PORT (P3)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 4 (P4)
-- ETHERNET PACKETS for PORT (P4)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 5 (P5)
-- ETHERNET PACKETS for PORT (P5)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 6 (P6)
-- ETHERNET PACKETS for PORT (P6)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--==========================================================
-- ETHERNET PACKETS for PORT 7 (P7)
-- ETHERNET PACKETS for PORT (P7)
--==========================================================
-- dmac smac VID type pl ps gap
------------------------------------------------------------
--
--
/trunk/Simulation/Scripts/esoc_control_test_stim.txt
1,30 → 1,42
-- ID:031
-- ID:000
--
-- Search bookmarks:
-- TBENCH CTRL DARB SARB SENG SCNT
-- P0CTRL P1CTRL P2CTRL P3CTRL P4CTRL P5CTRL P6CTRL P7CTRL
-- P0CNT P1CNT P2CNT P3CNT P4CNT P5CNT P6CNT P7CNT
-- status: ERROR
--
--========================================================
-- Status & Control ESOC Control (CTRL)
--========================================================
--
-- Manufacturer and Device ID
mr 8000 71022001
wt 10
-- Revision
mr 8001 00010000
wt 10
-- Status and Control
mr 8002 C0000008
wt 10
-- Scratch pad
mr 8003 00000000
wt 10
--========================================================
-- Status & Control ESOC Data Bus Arbiter (DARB)
--========================================================
-- Port weight
--
mr 8800 00000000
wt 10
--========================================================
-- Status & Control ESOC Search Bus Arbiter (SARB)
--========================================================
-- Port weight
--
mr 8808 00000000
wt 10
--========================================================
-- Status & Control ESOC Search Engine (SENG)
--========================================================
-- Status and Control
mw 8810 00000020
mr 8810 00000002
wt 10
--========================================================
-- Status & Control ESOC Port 0 (P0CTRL)
36,23 → 48,11
mr 0000 00000800
wt 10
-- Configuration
mw 0002 0400001B
mr 0002 00000000
wt 10
mr 0002 0400001B
wt 10
-- Maximum Frame Length
mw 0005 000005F2
mr 0005 000005EE
wt 10
mr 0005 000005F2
wt 10
-- Word alignment disable
mw 003a 00000000
wt 10
mw 003b 00000000
wt 10
-- Set SMI Address
mw 000F 00000000
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
63,23 → 63,17
mr 0181 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 0197 C0000001
wt 10
mw 0197 00000001
wt 10
mr 0197 40000000
wt 10
mw 0197 C00007FF
wt 10
mw 0197 000007FF
wt 10
mr 0197 40000000
mr 0197 00000000
wt 10
mw 0197 C0000FFF
wt 10
mw 0197 00000FFF
wt 10
mr 0197 40000000
mr 0197 00000000
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port Processor
97,23 → 91,11
mr 0800 00000800
wt 10
-- Configuration
mw 0802 0400001B
mr 0802 00000000
wt 10
mr 0802 0400001B
wt 10
-- Maximum Frame Length
mw 0805 000005F2
mr 0805 000005EE
wt 10
mr 0805 000005F2
wt 10
-- Word alignment disable
mw 083a 00000000
wt 10
mw 083b 00000000
wt 10
-- Set SMI Address
mw 080F 00000001
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
124,23 → 106,17
mr 0981 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 0997 C0000001
wt 10
mw 0997 00000001
wt 10
mr 0997 40000000
wt 10
mw 0997 C00007FF
wt 10
mw 0997 000007FF
wt 10
mr 0997 40000000
mr 0997 00000000
wt 10
mw 0997 C0000FFF
wt 10
mw 0997 00000FFF
wt 10
mr 0997 40000000
mr 0997 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 2 (P2CTRL)
152,23 → 128,11
mr 1000 00000800
wt 10
-- Configuration
mw 1002 0400001B
mr 1002 00000000
wt 10
mr 1002 0400001B
wt 10
-- Maximum Frame Length
mw 1005 000005F2
mr 1005 000005EE
wt 10
mr 1005 000005F2
wt 10
-- Word alignment disable
mw 103a 00000000
wt 10
mw 103b 00000000
wt 10
-- Set SMI Address
mw 100F 00000002
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
179,23 → 143,17
mr 1181 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 1197 C0000001
wt 10
mw 1197 00000001
wt 10
mr 1197 40000000
wt 10
mw 1197 C00007FF
wt 10
mw 1197 000007FF
wt 10
mr 1197 40000000
mr 1197 00000000
wt 10
mw 1197 C0000FFF
wt 10
mw 1197 00000FFF
wt 10
mr 1197 40000000
mr 1197 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 3 (P3CTRL)
207,23 → 165,11
mr 1800 00000800
wt 10
-- Configuration
mw 1802 0400001B
mr 1802 00000000
wt 10
mr 1802 0400001B
wt 10
-- Maximum Frame Length
mw 1805 000005F2
mr 1805 000005EE
wt 10
mr 1805 000005F2
wt 10
-- Word alignment disable
mw 183a 00000000
wt 10
mw 183b 00000000
wt 10
-- Set SMI Address
mw 180F 00000003
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
234,23 → 180,17
mr 1981 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 1997 C0000001
wt 10
mw 1997 00000001
wt 10
mr 1997 40000000
wt 10
mw 1997 C00007FF
wt 10
mw 1997 000007FF
wt 10
mr 1997 40000000
mr 1997 00000000
wt 10
mw 1997 C0000FFF
wt 10
mw 1997 00000FFF
wt 10
mr 1997 40000000
mr 1997 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 4 (P4CTRL)
262,23 → 202,11
mr 2000 00000800
wt 10
-- Configuration
mw 2002 0400001B
mr 2002 00000000
wt 10
mr 2002 0400001B
wt 10
-- Maximum Frame Length
mw 2005 000005F2
mr 2005 000005EE
wt 10
mr 2005 000005F2
wt 10
-- Word alignment disable
mw 203a 00000000
wt 10
mw 203b 00000000
wt 10
-- Set SMI Address
mw 200F 00000004
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
289,23 → 217,17
mr 2181 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 2197 C0000001
wt 10
mw 2197 00000001
wt 10
mr 2197 40000000
wt 10
mw 2197 C00007FF
wt 10
mw 2197 000007FF
wt 10
mr 2197 40000000
mr 2197 00000000
wt 10
mw 2197 C0000FFF
wt 10
mw 2197 00000FFF
wt 10
mr 2197 40000000
mr 2197 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 5 (P5CTRL)
317,23 → 239,11
mr 2800 00000800
wt 10
-- Configuration
mw 2802 0400001B
mr 2802 00000000
wt 10
mr 2802 0400001B
wt 10
-- Maximum Frame Length
mw 2805 000005F2
mr 2805 000005EE
wt 10
mr 2805 000005F2
wt 10
-- Word alignment disable
mw 283a 00000000
wt 10
mw 283b 00000000
wt 10
-- Set SMI Address
mw 280F 00000005
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
344,23 → 254,17
mr 2981 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 2997 C0000001
wt 10
mw 2997 00000001
wt 10
mr 2997 40000000
wt 10
mw 2997 C00007FF
wt 10
mw 2997 000007FF
wt 10
mr 2997 40000000
mr 2997 00000000
wt 10
mw 2997 C0000FFF
wt 10
mw 2997 00000FFF
wt 10
mr 2997 40000000
mr 2997 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 6 (P6CTRL)
372,23 → 276,11
mr 3000 00000800
wt 10
-- Configuration
mw 3002 0400001B
mr 3002 00000000
wt 10
mr 3002 0400001B
wt 10
-- Maximum Frame Length
mw 3005 000005F2
mr 3005 000005EE
wt 10
mr 3005 000005F2
wt 10
-- Word alignment disable
mw 303a 00000000
wt 10
mw 303b 00000000
wt 10
-- Set SMI Address
mw 300F 00000006
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
399,23 → 291,17
mr 3181 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 3197 C0000001
wt 10
mw 3197 00000001
wt 10
mr 3197 40000000
wt 10
mw 3197 C00007FF
wt 10
mw 3197 000007FF
wt 10
mr 3197 40000000
mr 3197 00000000
wt 10
mw 3197 C0000FFF
wt 10
mw 3197 00000FFF
wt 10
mr 3197 40000000
mr 3197 00000000
wt 10
--========================================================
-- Status & Control ESOC Port 7 (P7CTRL)
427,23 → 313,11
mr 3800 00000800
wt 10
-- Configuration
mw 3802 0400001B
mr 3802 00000000
wt 10
mr 3802 0400001B
wt 10
-- Maximum Frame Length
mw 3805 000005F2
mr 3805 000005EE
wt 10
mr 3805 000005F2
wt 10
-- Word alignment disable
mw 383a 00000000
wt 10
mw 383b 00000000
wt 10
-- Set SMI Address
mw 380F 00000007
wt 10
----------------------------------------------------------
-- Status & Control ESOC Port MAL
----------------------------------------------------------
454,107 → 328,408
mr 3981 00000001
wt 10
-- VLAN ID Membership (VID 1, 2047, 4095)
mw 3997 C0000001
wt 10
mw 3997 00000001
wt 10
mr 3997 40000000
wt 10
mw 3997 C00007FF
wt 10
mw 3997 000007FF
wt 10
mr 3997 40000000
mr 3997 00000000
wt 10
mw 3997 C0000FFF
wt 10
mw 3997 00000FFF
wt 10
mr 3997 40000000
mr 3997 00000000
wt 10
--========================================================
-- Write the PHY registers through the SMI interface
-- Status & Control ESOC Test Bench (TBENCH)
--========================================================
-- Write SMI data to port 0
mw 0080 00000000
-- RGMII Interface Enable
mr FF00 00000000
wt 10
mw 009F 0000FFFF
--========================================================
-- Counters ESOC Search Engine (SCNT)
--========================================================
-- SA Address Overload counter
mr 8812 00000000
wt 10
-- Write SMI data to port 1
mw 0880 00001111
--
-- SA Address Drop counter
mr 8811 00000000
wt 10
mw 089F 0000EEEE
--========================================================
-- Counters ESOC Port 0 (P0CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 001a 00000000
wt 10
-- Write SMI data to port 2
mw 1080 00002222
--
-- Inbound OK packets counter
mr 001b 00000000
wt 10
mw 109F 0000DDDD
--
-- Inbound CRC Error packets counter
mr 001c 00000000
wt 10
-- Write SMI data to port 3
mw 1880 00003333
--
-- Inbound Alignment Error packets counter
mr 001d 00000000
wt 10
mw 189F 0000CCCC
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 0196 00000000
wt 10
-- Write SMI data to port 4
mw 2080 00004444
--
-- Outbound Drop counter
mr 0195 00000000
wt 10
mw 209F 0000BBBB
--
-- Inbound Done counter
mr 0194 00000000
wt 10
-- Write SMI data to port 5
mw 2880 00005555
--
-- Inbound Drop counter
mr 0193 00000000
wt 10
mw 289F 0000AAAA
--
-- Search Done counter
mr 0192 00000000
wt 10
-- Write SMI data to port 6
mw 3080 00006666
--
-- Search Drop counter
mr 0191 00000000
wt 10
mw 309F 00009999
--========================================================
-- Counters ESOC Port 1 (P1CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 081a 00000000
wt 10
-- Write SMI data to port 7
mw 3880 00007777
--
-- Inbound OK packets counter
mr 081b 00000000
wt 10
mw 389F 00008888
--
-- Inbound CRC Error packets counter
mr 081c 00000000
wt 10
--
-- Inbound Alignment Error packets counter
mr 081d 00000000
wt 10
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 0996 00000000
wt 10
--
-- Outbound Drop counter
mr 0995 00000000
wt 10
--
-- Inbound Done counter
mr 0994 00000000
wt 10
--
-- Inbound Drop counter
mr 0993 00000000
wt 10
--
-- Search Done counter
mr 0992 00000000
wt 10
--
-- Search Drop counter
mr 0991 00000000
wt 10
--========================================================
-- Read the PHY registers through the SMI interface
-- Counters ESOC Port 2 (P2CNT)
--========================================================
-- Read SMI data to port 0
mr 0080 00000000
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 101a 00000000
wt 10
mr 009F 0000FFFF
--
-- Inbound OK packets counter
mr 101b 00000000
wt 10
-- Read SMI data to port 1
mr 0880 00001111
--
-- Inbound CRC Error packets counter
mr 101c 00000000
wt 10
mr 089F 0000EEEE
--
-- Inbound Alignment Error packets counter
mr 101d 00000000
wt 10
-- Read SMI data to port 2
mr 1080 00002222
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 1196 00000000
wt 10
mr 109F 0000DDDD
--
-- Outbound Drop counter
mr 1195 00000000
wt 10
-- Read SMI data to port 3
mr 1880 00003333
--
-- Inbound Done counter
mr 1194 00000000
wt 10
mr 189F 0000CCCC
--
-- Inbound Drop counter
mr 1193 00000000
wt 10
-- Read SMI data to port 4
mr 2080 00004444
--
-- Search Done counter
mr 1192 00000000
wt 10
mr 209F 0000BBBB
--
-- Search Drop counter
mr 1191 00000000
wt 10
-- Read SMI data to port 5
mr 2880 00005555
--========================================================
-- Counters ESOC Port 3 (P3CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 181a 00000000
wt 10
mr 289F 0000AAAA
--
-- Inbound OK packets counter
mr 181b 00000000
wt 10
-- Read SMI data to port 6
mr 3080 00006666
--
-- Inbound CRC Error packets counter
mr 181c 00000000
wt 10
mr 309F 00009999
--
-- Inbound Alignment Error packets counter
mr 181d 00000000
wt 10
-- Read SMI data to port 7
mr 3880 00007777
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 1996 00000000
wt 10
mr 389F 00008888
--
-- Outbound Drop counter
mr 1995 00000000
wt 10
--
-- Inbound Done counter
mr 1994 00000000
wt 10
--
-- Inbound Drop counter
mr 1993 00000000
wt 10
--
-- Search Done counter
mr 1992 00000000
wt 10
--
-- Search Drop counter
mr 1991 00000000
wt 10
--========================================================
-- Counters ESOC Port 4 (P4CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 201a 00000000
wt 10
--
-- Inbound OK packets counter
mr 201b 00000000
wt 10
--
-- Inbound CRC Error packets counter
mr 201c 00000000
wt 10
--
-- Inbound Alignment Error packets counter
mr 201d 00000000
wt 10
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 2196 00000000
wt 10
--
-- Outbound Drop counter
mr 2195 00000000
wt 10
--
-- Inbound Done counter
mr 2194 00000000
wt 10
--
-- Inbound Drop counter
mr 2193 00000000
wt 10
--
-- Search Done counter
mr 2192 00000000
wt 10
--
-- Search Drop counter
mr 2191 00000000
wt 10
--========================================================
-- Counters ESOC Port 5 (P5CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 281a 00000000
wt 10
--
-- Inbound OK packets counter
mr 281b 00000000
wt 10
--
-- Inbound CRC Error packets counter
mr 281c 00000000
wt 10
--
-- Inbound Alignment Error packets counter
mr 281d 00000000
wt 10
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 2996 00000000
wt 10
--
-- Outbound Drop counter
mr 2995 00000000
wt 10
--
-- Inbound Done counter
mr 2994 00000000
wt 10
--
-- Inbound Drop counter
mr 2993 00000000
wt 10
--
-- Search Done counter
mr 2992 00000000
wt 10
--
-- Search Drop counter
mr 2991 00000000
wt 10
--========================================================
-- Counters ESOC Port 6 (P6CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 301a 00000000
wt 10
--
-- Inbound OK packets counter
mr 301b 00000000
wt 10
--
-- Inbound CRC Error packets counter
mr 301c 00000000
wt 10
--
-- Inbound Alignment Error packets counter
mr 301d 00000000
wt 10
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 3196 00000000
wt 10
--
-- Outbound Drop counter
mr 3195 00000000
wt 10
--
-- Inbound Done counter
mr 3194 00000000
wt 10
--
-- Inbound Drop counter
mr 3193 00000000
wt 10
--
-- Search Done counter
mr 3192 00000000
wt 10
--
-- Search Drop counter
mr 3191 00000000
wt 10
--========================================================
-- Counters ESOC Port 7 (P7CNT)
--========================================================
----------------------------------------------------------
-- Counters ESOC Port MAC
----------------------------------------------------------
-- Outbound OK packets counter
mr 381a 00000000
wt 10
--
-- Inbound OK packets counter
mr 381b 00000000
wt 10
--
-- Inbound CRC Error packets counter
mr 381c 00000000
wt 10
--
-- Inbound Alignment Error packets counter
mr 381d 00000000
wt 10
----------------------------------------------------------
-- Counters ESOC Port Processor
----------------------------------------------------------
-- Outbound Done counter
mr 3996 00000000
wt 10
--
-- Outbound Drop counter
mr 3995 00000000
wt 10
--
-- Inbound Done counter
mr 3994 00000000
wt 10
--
-- Inbound Drop counter
mr 3993 00000000
wt 10
--
-- Search Done counter
mr 3992 00000000
wt 10
--
-- Search Drop counter
mr 3991 00000000
wt 10
--
/trunk/Simulation/Modelsim/run.do
17,6 → 17,12
file copy $path_project_files/$path_script_files/esoc_control_test_stim_$4.txt $path_project_files/$path_script_files/esoc_control_test_stim.txt
file copy $path_project_files/$path_script_files/esoc_rgmii_test_stim_$4.txt $path_project_files/$path_script_files/esoc_rgmii_test_stim.txt
#
# copy memory init files for testbench
file delete $path_project_files/$path_msim_files/esoc_rom_2kx32.mif
file delete $path_project_files/$path_msim_files/esoc_ram_4kx1.mif
file copy $path_project_files/$path_design_files_altera/esoc_rom_nkx32/esoc_rom_2kx32.mif $path_project_files/$path_msim_files/esoc_rom_2kx32.mif
file copy $path_project_files/$path_design_files_altera/esoc_ram_nkx1/esoc_ram_4kx1.mif $path_project_files/$path_msim_files/esoc_ram_4kx1.mif
#
# rebuild IP
vcom -work work -2002 $path_project_files/$path_design_files_logixa/esoc_tb.vhd
#

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.