Commit 4e277b38 authored by Hejing Li's avatar Hejing Li
Browse files

eth, pci latency, nic clock frequency

parent 2253e14c
......@@ -19,10 +19,10 @@ extern "C" {
#include "dma.h"
#include "mem.h"
#define CLOCK_PERIOD (100 * 1000ULL) // 100ns -> 10MHz
#define SYNC_PERIOD (500 * 1000ULL) // 100ns
#define PCI_LATENCY (1 * 1000 * 1000ULL) // 1us
#define ETH_LATENCY (1 * 1000 * 1000ULL) // 1us
#define CLOCK_PERIOD (4 * 1000ULL) // 4ns -> 2500MHz
#define SYNC_PERIOD (500 * 1000ULL) // 500ns
#define PCI_LATENCY (500 * 1000ULL) // 500ns
#define ETH_LATENCY (500 * 1000ULL) // 500ns
struct DMAOp;
......
......@@ -10,9 +10,9 @@
//#define DEBUG_NICBM 1
#define SYNC_PERIOD (500 * 1000ULL) // 100ns
#define PCI_LATENCY (1 * 1000 * 1000ULL) // 1us
#define ETH_LATENCY (1 * 1000 * 1000ULL) // 1us
#define SYNC_PERIOD (500 * 1000ULL) // 500ns
#define PCI_LATENCY (500 * 1000ULL) // 500ns
#define ETH_LATENCY (500 * 1000ULL) // 500ns
using namespace nicbm;
......
......@@ -34,8 +34,8 @@
#include <netsim.h>
#define SYNC_PERIOD (500 * 1000ULL) // 100ns
#define ETH_LATENCY (1 * 1000 * 1000ULL) // 1us
#define SYNC_PERIOD (500 * 1000ULL) // 500ns
#define ETH_LATENCY (500 * 1000ULL) // 500ns
static void move_pkt(uint64_t cur_ts, struct netsim_interface *from,
struct netsim_interface *to)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment