URL
https://opencores.org/ocsvn/tsv/tsv/trunk
[/] [tsv/] [trunk/] [test/] [T001.TSV] - Diff between revs 3 and 5
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 5 |
Line 1... |
Line 1... |
module mkExample (Empty);
|
module mkExample (Empty);
|
//Reg#(Bit#(8)) r <- mkReg(?); // don't-care is used for the
|
//Reg#(Bit#(8)) r <- mkReg(?); // don't-care is used for the
|
//Reg#(Bit#(8)) r1<- mkReg(8'h33);
|
//Reg#(Bit#(8)) r1<- mkReg(8'h33);
|
Reg#(Bit#(8)) r2<- mkReg(~0);
|
//Reg#(Bit#(8)) r2<- mkReg(~0);
|
rule every( True ); // reset value of the Reg
|
rule every( True ); // reset value of the Reg
|
$display("value is %h", r); // the value of r is displayed
|
$display("value is %h", r); // the value of r is displayed
|
endrule
|
endrule
|
endmodule
|
endmodule
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.