1

Reassemble example programs

This commit is contained in:
2023-03-29 19:14:00 +02:00
parent a7f4bf6e92
commit f554efcd7d
12 changed files with 89 additions and 68 deletions

15
programs/nop_and_jump.sv Normal file
View File

@ -0,0 +1,15 @@
`default_nettype none
module ROM(
input var logic[7:0] address,
output var logic[7:0] dataout
);
always @(address) case (address)
case 8'b00000000: dataout = 8'b11000000;
case 8'b00000001: dataout = 8'b00000000;
case 8'b00000010: dataout = 8'b11000100;
default: dataout = 8'b00000000;
endcase
endmodule