Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
a12114c7
Commit
a12114c7
authored
Apr 28, 2023
by
sowarzan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/genrams/generic/generic_async_fifo_wrap.sv add rd_count_o data counter
parent
fd3f78c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
generic_async_fifo_wrap.sv
modules/genrams/generic/generic_async_fifo_wrap.sv
+4
-3
No files found.
modules/genrams/generic/generic_async_fifo_wrap.sv
View file @
a12114c7
...
...
@@ -34,12 +34,13 @@ module generic_async_fifo_wrap #(
input
wire
clk_wr_i
,
// Write Clock
input
wire
[
15
:
0
]
d_i
,
// Write data
input
wire
we_i
,
// Wrte enable
output
wire
[
clogb2
(
SIZE
)
-
1
:
0
]
wr_count_o
,
output
wire
[
clogb2
(
SIZE
)
-
1
:
0
]
wr_count_o
,
// Data counter
// read port
input
wire
clk_rd_i
,
// Read Clock
output
wire
[
15
:
0
]
q_o
,
// Read data
input
wire
rd_i
// Read enable
input
wire
rd_i
,
// Read enable
output
wire
[
clogb2
(
SIZE
)
-
1
:
0
]
rd_count_o
// Data counter
)
;
reg
r_we_i
,
r_rd_i
;
wire
wr_full_o
,
rd_empty_o
;
...
...
@@ -97,6 +98,6 @@ module generic_async_fifo_wrap #(
.
rd_full_o
()
,
.
rd_almost_empty_o
()
,
.
rd_almost_full_o
()
,
.
rd_count_o
()
.
rd_count_o
(
rd_count_o
)
)
;
endmodule
//
generic_async_fifo_wrap
\ No newline at end of file
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