R
Robert Willy
Guest
Hi,
I see the following in a tutorial example. I don't understand the two ':' in
the example. Other on line tutorial only has one ':' in a table module.
primitive dff (q,clk,d,nrst,nset);
input clk,d,nrst,nset;
output q;
reg q;
//initial
// q = 1'b1;
table
// clk d nrst nset q q+
? ? X ? : ? : X ;
? ? ? X : ? : X ;
? ? 0 1 : ? : 0 ;
? ? 1 0 : ? : 1 ;
? ? 0 0 : ? : X ;
(01) 0 1 1 : ? : 0 ;
(01) 1 1 1 : ? : 1 ;
n ? 1 1 : ? : - ;
? * 1 1 : ? : - ;
//
? ? r 1 : ? : - ;
endtable
endprimitive
Second, it has the comments:
//initial
// q = 1'b1;
but I do not see it is formally to define the initial states. What is the \
purpose of the author?
Thanks,
I see the following in a tutorial example. I don't understand the two ':' in
the example. Other on line tutorial only has one ':' in a table module.
primitive dff (q,clk,d,nrst,nset);
input clk,d,nrst,nset;
output q;
reg q;
//initial
// q = 1'b1;
table
// clk d nrst nset q q+
? ? X ? : ? : X ;
? ? ? X : ? : X ;
? ? 0 1 : ? : 0 ;
? ? 1 0 : ? : 1 ;
? ? 0 0 : ? : X ;
(01) 0 1 1 : ? : 0 ;
(01) 1 1 1 : ? : 1 ;
n ? 1 1 : ? : - ;
? * 1 1 : ? : - ;
//
? ? r 1 : ? : - ;
endtable
endprimitive
Second, it has the comments:
//initial
// q = 1'b1;
but I do not see it is formally to define the initial states. What is the \
purpose of the author?
Thanks,