EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
about verilog,what is meaning of if(!res_n)
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: about verilog,what is meaning of if(!res_n) (Read 1758 times)
0 Members and 1 Guest are viewing this topic.
david-IT
Contributor
!
Posts: 17
Country:
never stop learning
about verilog,what is meaning of if(!res_n)
«
on:
March 24, 2016, 09:14:45 am »
Reg[17:0] cnt;
always@(posedge clk)
if(!rst_n)
cnt<=18'd0;
else
cnt<=cnt+1'b1;
What is the meaning of if(!res_n)?
Logged
david-IT
Contributor
!
Posts: 17
Country:
never stop learning
Re: about verilog,what is meaning of if(!res_n)
«
Reply #1 on:
March 24, 2016, 09:52:26 am »
don't tell me no one knows here
Logged
Codemonkey
Regular Contributor
Posts: 235
Country:
Re: about verilog,what is meaning of if(!res_n)
«
Reply #2 on:
March 24, 2016, 10:02:42 am »
It translates to "if res_n signal is low"
Logged
david-IT
Contributor
!
Posts: 17
Country:
never stop learning
Re: about verilog,what is meaning of if(!res_n)
«
Reply #3 on:
March 24, 2016, 10:26:43 am »
Quote from: Codemonkey on March 24, 2016, 10:02:42 am
It translates to "if res_n signal is low"
thanks for reply,i think i am a little understand now
Logged
Scrts
Frequent Contributor
Posts: 797
Country:
Re: about verilog,what is meaning of if(!res_n)
«
Reply #4 on:
March 24, 2016, 07:41:02 pm »
Quote from: Codemonkey on March 24, 2016, 10:02:42 am
It translates to "if res_n signal is low"
Just for the reference: ! means "not". So it translate if rst_n is NOT high or, as being said, if rst_n is low.
Logged
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
about verilog,what is meaning of if(!res_n)
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee