forked from TinyTapeout/tt02-submission-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:TinyTapeout/tt02-submission-templat…
…e into main
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// TinyTapeout02: Verilog Template | ||
// Remember to include your top module name in the info.yaml file | ||
`default_netname none | ||
|
||
module githubusername_top( //prepend your github username | ||
input [7:0] io_in, //leave the port names unchanged | ||
output [7:0] io_out); | ||
|
||
//****Your Design Here**** | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module template_tb (); | ||
reg [7:0] io_in; | ||
wire [7:0] io_out; | ||
|
||
initial begin | ||
$monitor("%8b %8b", io_in, io_out); | ||
io_in = 8'b00000000; | ||
#1 io_in = 8'b00000001; | ||
#1 io_in = 8'b00000000; | ||
#1 io_in = 8'b00000010; | ||
#1 io_in = 8'b00000010; | ||
#1 io_in = 8'b00000011; | ||
#1 io_in = 8'b00000010; | ||
#1 io_in = 8'b00000000; | ||
end | ||
|
||
githubusername_top dut(.io_i(io_in), | ||
.io_o(io_out)); | ||
endmodule |