C
Chris Carlen
Guest
Hi:
Which is the more common/better/more accepted way of making these
register port definitions, or doesn't it matter?:
module CB8CE(Q, TC, CEO, C, CLR, CE);
output reg [7:0] Q;
output reg TC, CEO;
input C, CLR, CE;
// stuff edited
endmodule
OR...
module CB8CE(Q, TC, CEO, C, CLR, CE);
output Q, TC, CEO;
input C, CLR, CE;
reg [7:0] Q;
reg TC, CEO;
// stuff edited
endmodule
Thanks for input.
Good day!
--
____________________________________
Christopher R. Carlen
Principal Laser/Optical Technologist
Sandia National Laboratories CA USA
crcarle@sandia.gov
Which is the more common/better/more accepted way of making these
register port definitions, or doesn't it matter?:
module CB8CE(Q, TC, CEO, C, CLR, CE);
output reg [7:0] Q;
output reg TC, CEO;
input C, CLR, CE;
// stuff edited
endmodule
OR...
module CB8CE(Q, TC, CEO, C, CLR, CE);
output Q, TC, CEO;
input C, CLR, CE;
reg [7:0] Q;
reg TC, CEO;
// stuff edited
endmodule
Thanks for input.
Good day!
--
____________________________________
Christopher R. Carlen
Principal Laser/Optical Technologist
Sandia National Laboratories CA USA
crcarle@sandia.gov