Jun 1, 2011 #1 H harsh49 Newbie level 2 Joined May 27, 2011 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location new delhi Activity points 1,293 help me for this program...its not functioning as it should be as per program..... primitive tflip(q,t,clk,reset); output q; reg q; input t,clk,reset; initial q=1'b0; table //t clk reset q q+ ? ? 1 :?:0; ? ? (10) :?:0; ? ? (01) :?:0; ? ? (x?) :?:0; ? ? (?x) :?:0; ? (10) ? :?:1; 0 (01) 0 :?:0; 1 (01) 0 :0:1; 1 (01) 0 :1:0; endtable endprimitive
help me for this program...its not functioning as it should be as per program..... primitive tflip(q,t,clk,reset); output q; reg q; input t,clk,reset; initial q=1'b0; table //t clk reset q q+ ? ? 1 :?:0; ? ? (10) :?:0; ? ? (01) :?:0; ? ? (x?) :?:0; ? ? (?x) :?:0; ? (10) ? :?:1; 0 (01) 0 :?:0; 1 (01) 0 :0:1; 1 (01) 0 :1:0; endtable endprimitive
Jun 2, 2011 #2 L ljxpjpjljx Advanced Member level 3 Joined May 5, 2008 Messages 968 Helped 80 Reputation 162 Reaction score 56 Trophy points 1,308 Location Shang Hai Activity points 4,679 please explain clearly which problem you meet?
Jun 3, 2011 #3 H harsh49 Newbie level 2 Joined May 27, 2011 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location new delhi Activity points 1,293 at negetive edge of the clk.....this program is working as a the togling condition...which should not be work like it ...since i have specified that the output should be 0 at negetive edge of clk so why it is working like a positive edge of clk.....
at negetive edge of the clk.....this program is working as a the togling condition...which should not be work like it ...since i have specified that the output should be 0 at negetive edge of clk so why it is working like a positive edge of clk.....