vead
Full Member level 5
- Joined
- Nov 27, 2011
- Messages
- 285
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- india
- Activity points
- 3,815
I am confused I want to know what is difference between always and assign and where they use
program 1st
program 2st
which program is right please someone explain where we use always and assign syntax
program 1st
Code Verilog - [expand] 1 2 3 4 5 module and2gate (A,B,Y); input A,B; output Y; assign Y=A&B; endmodule
program 2st
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 module and2gate (A,B,Y); input A,B; output Y reg y always@(AorB); begin Y<=A&B; end endmodule
which program is right please someone explain where we use always and assign syntax
Last edited by a moderator: