Reassemble example programs
This commit is contained in:
15
programs/nop_and_jump.sv
Normal file
15
programs/nop_and_jump.sv
Normal 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
|
Reference in New Issue
Block a user