FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
VerilogTutorial/src/DataFlowModelling.v at master · esch3r/VerilogTutorial · GitHub
esch3r
/
VerilogTutorial
Public
forked from
ashishrana160796/verilog-starter-tutorials
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
VerilogTutorial
/
src
/
DataFlowModelling.v
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (33 loc) · 636 Bytes
Breadcrumbs
VerilogTutorial
/
src
/
DataFlowModelling.v
Copy path
File metadata and controls
34 lines (33 loc) · 636 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module
logic_gates
(a,b,c,d,e,f,g,h);
input
a,b;
output
c,d,e,f,g,h;
assign
c
=
a
&
b;
assign
d
=
a
|
b;
assign
e
=
a
~&
b;
assign
f
=
a
~|
b;
assign
g
=
a^b;
assign
h
=~
a;
endmodule
module
test_bench
;
reg
a,b;
wire
c,d,e,f,g,h;
logic_gates
t
(a,b,c,d,e,f,g,h);
initial
begin
$dumpfile
(
"vcd/DataFlow.vcd"
);
$dumpvars
(
0
,test_bench);
$monitor(
"a=%b,b=%b,and=%b,or=%b,nand=%b,nor=%b,xor=%b,not=%b"
,a,b,c,d,e,f,g,h);
a
=
0
;
b
=
0
;
#10
a
=
1
;
b
=
0
;
#10
a
=
0
;
b
=
1
;
#10
a
=
1
;
b
=
1
;
#10
$finish
;
end
endmodule
Back
|
FazBrowse Home
|
New Git URL