Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
4e277b38
Commit
4e277b38
authored
Sep 10, 2020
by
Hejing Li
Browse files
eth, pci latency, nic clock frequency
parent
2253e14c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
corundum/corundum_verilator.cpp
corundum/corundum_verilator.cpp
+4
-4
libnicbm/nicbm.cc
libnicbm/nicbm.cc
+3
-3
net_wire/net_wire.c
net_wire/net_wire.c
+2
-2
No files found.
corundum/corundum_verilator.cpp
View file @
4e277b38
...
@@ -19,10 +19,10 @@ extern "C" {
...
@@ -19,10 +19,10 @@ extern "C" {
#include "dma.h"
#include "dma.h"
#include "mem.h"
#include "mem.h"
#define CLOCK_PERIOD (
100
* 1000ULL) //
100
ns ->
1
0MHz
#define CLOCK_PERIOD (
4
* 1000ULL) //
4
ns ->
250
0MHz
#define SYNC_PERIOD (500 * 1000ULL) //
1
00ns
#define SYNC_PERIOD (500 * 1000ULL) //
5
00ns
#define PCI_LATENCY (
1 * 10
00 * 1000ULL) //
1u
s
#define PCI_LATENCY (
5
00 * 1000ULL) //
500n
s
#define ETH_LATENCY (
1 * 10
00 * 1000ULL) //
1u
s
#define ETH_LATENCY (
5
00 * 1000ULL) //
500n
s
struct
DMAOp
;
struct
DMAOp
;
...
...
libnicbm/nicbm.cc
View file @
4e277b38
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
//#define DEBUG_NICBM 1
//#define DEBUG_NICBM 1
#define SYNC_PERIOD (500 * 1000ULL) //
1
00ns
#define SYNC_PERIOD (500 * 1000ULL) //
5
00ns
#define PCI_LATENCY (
1 * 10
00 * 1000ULL) //
1u
s
#define PCI_LATENCY (
5
00 * 1000ULL) //
500n
s
#define ETH_LATENCY (
1 * 10
00 * 1000ULL) //
1u
s
#define ETH_LATENCY (
5
00 * 1000ULL) //
500n
s
using
namespace
nicbm
;
using
namespace
nicbm
;
...
...
net_wire/net_wire.c
View file @
4e277b38
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
#include <netsim.h>
#include <netsim.h>
#define SYNC_PERIOD (500 * 1000ULL) //
1
00ns
#define SYNC_PERIOD (500 * 1000ULL) //
5
00ns
#define ETH_LATENCY (
1 * 10
00 * 1000ULL) //
1u
s
#define ETH_LATENCY (
5
00 * 1000ULL) //
500n
s
static
void
move_pkt
(
uint64_t
cur_ts
,
struct
netsim_interface
*
from
,
static
void
move_pkt
(
uint64_t
cur_ts
,
struct
netsim_interface
*
from
,
struct
netsim_interface
*
to
)
struct
netsim_interface
*
to
)
...
...
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