Commit 16fda0bd by Yen-Sheng Ho

added a simple example; edited hgignore

parent 1d3ff533
...@@ -52,9 +52,14 @@ build/ ...@@ -52,9 +52,14 @@ build/
*.rej *.rej
*.orig *.orig
tags
syntax: regexp syntax: regexp
^libabc.a$ ^libabc.a$
^abc$ ^abc$
^arch_flags$ ^arch_flags$
^cmake
^cscope
module fsm (out);
output out;
wire [2:0] ns;
wire [2:0] cs;
always @( ns or cs )
begin
case (cs)
0 : ns = 3'b010;
1 : ns = 3'b001;
2 : ns = 3'b000;
3 : ns = 3'b101;
4 : ns = 3'b001;
5 : ns = 3'b111;
6 : ns = 3'b001;
7 : ns = 3'b110;
endcase
end
assign out = cs == 3'b001;
wire [2:0] const0 = 3'h0;
CPL_FF#3 ff3 ( .q(cs), .qbar(), .d(ns), .clk(), .arst(), .arstval(const0) );
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment