Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit core collection
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit core collection
Commits
34850d90
Commit
34850d90
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
simulation models: old fabric emulator updated with an EthPacketSink interface
parent
2c03a7ae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sim/fabric_emu/fabric_emu.sv
+21
-0
21 additions, 0 deletions
sim/fabric_emu/fabric_emu.sv
sim/fabric_emu/fabric_emu_defs.sv
+1
-1
1 addition, 1 deletion
sim/fabric_emu/fabric_emu_defs.sv
with
22 additions
and
1 deletion
sim/fabric_emu/fabric_emu.sv
+
21
−
0
View file @
34850d90
...
...
@@ -417,6 +417,27 @@ module fabric_emu
tx_queue
.
push
(
frame
);
endtask
// send
task
automatic
send_raw
(
byte
raw_data
[]);
reg
[
`c_wrsw_ctrl_size
-
1
:
0
]
ctrl_vec
[
0
:
2000
];
reg
[
15
:
0
]
data_vec
[
0
:
2000
];
int
error
,
i
;
for
(
i
=
0
;
i
<
(
raw_data
.
size
()
+
1
)
/
2
;
i
++
)
begin
ctrl_vec
[
i
]
=
`c_wrsw_ctrl_payload
;
data_vec
[
i
][
15
:
8
]
=
raw_data
[
2
*
i
];
data_vec
[
i
][
7
:
0
]
=
raw_data
[
2
*
i
+
1
];
end
send_fabric
(
data_vec
,
ctrl_vec
,
(
raw_data
.
size
()
%
2
)
?
1
:
0
,
i
,
i
-
1
,
error
);
endtask
// send_raw
// Handles WRF packet sink input
task
automatic
rx_process
();
...
...
This diff is collapsed.
Click to expand it.
sim/fabric_emu/fabric_emu_defs.sv
+
1
−
1
View file @
34850d90
...
...
@@ -26,7 +26,7 @@ typedef struct {
bit
[
31
:
0
]
fcs
;
bit
error
;
bit
has_payload
;
bit
has_raw
;
byte
raw_data
[];
}
ether_frame_t
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment