~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/sdk/resources/lexers/lexer_verilog.sample

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// D flip-flop
 
2
module d_ff ( d, clk, q, q_bar);
 
3
input d ,clk;
 
4
output q, q_bar;
 
5
wire d ,clk;
 
6
reg q, q_bar;
 
7
 
 
8
always @ (posedge clk)
 
9
begin
 
10
    q <= d;
 
11
    q_bar <=  ! d;
 
12
end
 
13
 
 
14
endmodule
 
15
// D flip-flop
 
16
module d_ff ( d, clk, q, q_bar);
 
17
input d ,clk;
 
18
output q, q_bar;
 
19
wire d ,clk;
 
20
reg q, q_bar;
 
21
 
 
22
always @ (posedge clk)
 
23
begin
 
24
    q <= d;
 
25
    q_bar <=  ! d;
 
26
end
 
27
 
 
28
endmodule