Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Gateware
Commits
55705800
Commit
55705800
authored
Jul 13, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrsw_rtu: removed obsolete files
parent
06dfe9c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
2789 deletions
+0
-2789
global_defs.vhd
modules/wrsw_rtu/global_defs.vhd
+0
-103
showahead_fifo.vhd
modules/wrsw_rtu/showahead_fifo.vhd
+0
-70
wrsw_rtu_wb_20ports.vhd
modules/wrsw_rtu/wrsw_rtu_wb_20ports.vhd
+0
-2616
No files found.
modules/wrsw_rtu/global_defs.vhd
deleted
100644 → 0
View file @
06dfe9c2
-------------------------------------------------------------------------------
-- Title : Global definitions
-- Project : WhiteRabbit switch
-------------------------------------------------------------------------------
-- File : global_defs.vhd
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-04-27
-- Last update: 2011-07-15
-- Platform : FPGA-generic
-- Standard : VHDL
-------------------------------------------------------------------------------
-- Description: Definitions (mostly constants) global for whole switch design.
-------------------------------------------------------------------------------
-- Copyright (c) 2010 Tomasz Wlostowski
-------------------------------------------------------------------------------
-- Revisions :
-- Date Version Author Description
-- 2010-04-27 1.0 twlostow Created
-------------------------------------------------------------------------------
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
package
global_defs
is
-- Number of switch ports (including NIC)
constant
c_wrsw_num_ports
:
integer
:
=
11
;
-- MAC address size
constant
c_wrsw_mac_addr_width
:
integer
:
=
48
;
-- VID (VLAN Id) size
constant
c_wrsw_vid_width
:
integer
:
=
12
;
-- Priority vector size
constant
c_wrsw_prio_width
:
integer
:
=
3
;
-- Number of internal priority levels
constant
c_wrsw_prio_levels
:
integer
:
=
8
;
-- Number of RTU ports (number of switch ports - 1x NIC which doesn't use RTU)
constant
c_rtu_num_ports
:
integer
:
=
10
;
--c_wrsw_num_ports - 1;
-- RX error code bus width
constant
c_ep_rx_error_code_size
:
integer
:
=
3
;
-- TX error code bus width
constant
c_ep_tx_error_code_size
:
integer
:
=
3
;
-- Size of fabric control bus
constant
c_wrsw_ctrl_size
:
integer
:
=
4
;
-- Size of TX OOB frame identifier
constant
c_wrsw_oob_frame_id_size
:
integer
:
=
16
;
-- Size of rising-edge timestamp (the main one)
constant
c_wrsw_timestamp_size_r
:
integer
:
=
28
;
-- Size of falling-edge timestamp (the error-checking one)
constant
c_wrsw_timestamp_size_f
:
integer
:
=
4
;
-- empty control field (such as empty source MAC address) left by the sender to
-- be filled by the endpoint.
constant
c_wrsw_ctrl_none
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"0"
;
constant
c_wrsw_ctrl_dst_mac
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"1"
;
constant
c_wrsw_ctrl_src_mac
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"2"
;
constant
c_wrsw_ctrl_ethertype
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"3"
;
constant
c_wrsw_ctrl_vid_prio
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"4"
;
constant
c_wrsw_ctrl_tx_oob
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"5"
;
constant
c_wrsw_ctrl_rx_oob
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"6"
;
constant
c_wrsw_ctrl_payload
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"7"
;
constant
c_wrsw_ctrl_fcs
:
std_logic_vector
(
c_wrsw_ctrl_size
-
1
downto
0
)
:
=
x"8"
;
-- Size of Filetering Idetifier, 801.2Q-2005, p77:range of fid=<1-4096>
constant
c_wrsw_fid_width
:
integer
:
=
8
;
-- Size of hash - works as address of filtering database
constant
c_wrsw_hash_width
:
integer
:
=
9
;
-- Size of CRC
constant
c_wrsw_crc_width
:
integer
:
=
16
;
-- Size of CAM address - works as part of the filtering database (-limit by ZBT space to 15 bits)
constant
c_wrsw_cam_addr_width
:
integer
:
=
8
;
-- Number of words in one entry (5) [actually there is 6 elements in the mFIFO, because addrress is
-- also put into fifo, this is why in the code there is '>'. so acually the mFIFO is started to be
-- read when there are 6 elements, at least]
constant
c_wrsw_entry_words_number
:
std_logic_vector
(
5
downto
0
)
:
=
"000101"
;
-- '1' - enable debugging
-- '0' - disable debugging
-- debugging concerns recording to FIFOs what is read from ZBT SRAM and CAM
constant
c_wrsw_rtu_debugging
:
std_logic
:
=
'0'
;
constant
c_default_hash_poly
:
std_logic_vector
(
16
-
1
downto
0
)
:
=
x"1021"
;
end
global_defs
;
modules/wrsw_rtu/showahead_fifo.vhd
deleted
100644 → 0
View file @
06dfe9c2
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
work
.
genram_pkg
.
all
;
entity
showahead_fifo
is
generic
(
g_data_width
:
natural
;
g_size
:
natural
);
port
(
rst_n_i
:
in
std_logic
:
=
'1'
;
clk_i
:
in
std_logic
;
d_i
:
in
std_logic_vector
(
g_data_width
-1
downto
0
);
we_i
:
in
std_logic
;
q_o
:
out
std_logic_vector
(
g_data_width
-1
downto
0
);
rd_i
:
in
std_logic
;
empty_o
:
out
std_logic
;
full_o
:
out
std_logic
);
end
showahead_fifo
;
architecture
rtl
of
showahead_fifo
is
signal
empty
,
rd
:
std_logic
;
signal
q_valid
:
std_logic
;
begin
-- rtl
U_Fifo
:
generic_sync_fifo
generic
map
(
g_data_width
=>
g_data_width
,
g_size
=>
g_size
)
port
map
(
rst_n_i
=>
rst_n_i
,
clk_i
=>
clk_i
,
d_i
=>
d_i
,
we_i
=>
we_i
,
q_o
=>
q_o
,
rd_i
=>
rd
,
empty_o
=>
empty
,
full_o
=>
full_o
);
process
(
clk_i
)
begin
if
rising_edge
(
clk_i
)
then
if
rst_n_i
=
'0'
then
empty
<=
'1'
;
else
if
(
empty
=
'0'
)
then
rd
<=
'1'
;
q_valid
<=
rd
;
end
if
;
end
if
;
end
if
;
end
process
;
end
rtl
;
modules/wrsw_rtu/wrsw_rtu_wb_20ports.vhd
deleted
100644 → 0
View file @
06dfe9c2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment