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
14663820
Commit
14663820
authored
Jan 17, 2012
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swcore[v2->v3 port]: trying to synthesise, few hacks to make it work temprarily :(
parent
60328440
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
26 deletions
+6
-26
manifest.py
modules/wrsw_swcore/manifest.py
+0
-21
swc_multiport_pck_pg_free_module.vhd
modules/wrsw_swcore/swc_multiport_pck_pg_free_module.vhd
+1
-1
swc_page_alloc.vhd
modules/wrsw_swcore/swc_page_alloc.vhd
+2
-2
swc_swcore_pkg.vhd
modules/wrsw_swcore/swc_swcore_pkg.vhd
+3
-2
No files found.
modules/wrsw_swcore/manifest.py
deleted
100644 → 0
View file @
60328440
files
=
[
"swc_swcore_pkg.vhd"
,
"swc_block_alloc.vhd"
,
"swc_core.vhd"
,
"swc_input_block.vhd"
,
"swc_lost_pck_dealloc.vhd"
,
"swc_multiport_linked_list.vhd"
,
"swc_multiport_page_allocator.vhd"
,
"swc_multiport_pck_pg_free_module.vhd"
,
"swc_ob_prio_queue.vhd"
,
"swc_output_block.vhd"
,
"swc_packet_mem.vhd"
,
"swc_packet_mem_read_pump.vhd"
,
"swc_packet_mem_write_pump.vhd"
,
"swc_page_alloc.vhd"
,
"swc_pck_pg_free_module.vhd"
,
"swc_pck_transfer_arbiter.vhd"
,
"swc_pck_transfer_input.vhd"
,
"swc_pck_transfer_output.vhd"
,
"swc_prio_encoder.vhd"
,
"swc_rr_arbiter.vhd"
,
"generic_ssram_dualport_singleclock.vhd"
]
modules/wrsw_swcore/swc_multiport_pck_pg_free_module.vhd
View file @
14663820
...
...
@@ -44,7 +44,7 @@ use ieee.numeric_std.all;
library
work
;
use
work
.
swc_swcore_pkg
.
all
;
use
work
.
platform_specific
.
all
;
--
use work.platform_specific.all;
...
...
modules/wrsw_swcore/swc_page_alloc.vhd
View file @
14663820
...
...
@@ -308,12 +308,12 @@ begin -- syn
aa_i
=>
usecnt_mem_wraddr
,
qa_o
=>
open
,
wea_i
=>
usecnt_mem_wr
,
bwea_i
=>
ones
(
g_use_count_bits
/
8
-1
downto
0
),
bwea_i
=>
ones
(
(
g_use_count_bits
+
7
)
/
8
-1
downto
0
),
ab_i
=>
usecnt_mem_rdaddr
,
qb_o
=>
usecnt_mem_rddata
,
db_i
=>
ones
(
g_use_count_bits
-1
downto
0
),
bweb_i
=>
ones
(
g_use_count_bits
/
8-1
downto
0
),
bweb_i
=>
ones
(
(
g_use_count_bits
+
7
)
/
8-1
downto
0
),
web_i
=>
'0'
);
...
...
modules/wrsw_swcore/swc_swcore_pkg.vhd
View file @
14663820
...
...
@@ -54,7 +54,7 @@ package swc_swcore_pkg is
-- number of switch ports
constant
c_swc_num_ports
:
integer
:
=
11
;
constant
c_swc_num_ports
:
integer
:
=
7
;
--c_NUM_PORTS
-- size of the packet memory in words (1 word = 1 ctrl + data sequence)
constant
c_swc_packet_mem_size
:
integer
:
=
65536
;
...
...
@@ -83,7 +83,8 @@ package swc_swcore_pkg is
constant
c_swc_freeing_fifo_log2
:
integer
:
=
integer
(
CEIL
(
LOG2
(
real
(
c_swc_freeing_fifo_size
-1
))));
constant
c_swc_page_addr_width
:
integer
:
=
integer
(
CEIL
(
LOG2
(
real
(
c_swc_packet_mem_num_pages
-1
))));
constant
c_swc_usecount_width
:
integer
:
=
integer
(
CEIL
(
LOG2
(
real
(
c_swc_num_ports
-1
))));
--todo:
constant
c_swc_usecount_width
:
integer
:
=
4
;
-- HACK... integer(CEIL(LOG2(real(c_swc_num_ports-1))));
constant
c_swc_page_offset_width
:
integer
:
=
integer
(
CEIL
(
LOG2
(
real
(
c_swc_page_size
/
c_swc_packet_mem_multiply
))));
constant
c_swc_packet_mem_addr_width
:
integer
:
=
c_swc_page_addr_width
+
c_swc_page_offset_width
;
constant
c_swc_pump_width
:
integer
:
=
c_swc_data_width
+
c_swc_ctrl_width
;
...
...
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