Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/pre-release'
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Pereira committed Dec 16, 2015
2 parents 13a8fbe + e1c783b commit 091fc7a
Show file tree
Hide file tree
Showing 16 changed files with 88 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions Aula_Pratica_05/Ficheiros de Implementação/Parte 2/ROM_1.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module ROM( endereco, dado );
input [4:0] endereco;
output [7:0] dado;

reg [7:0] dado;

always @*
case (endereco)
5'd0: dado = 8'b010_100_00;
5'd1: dado = 8'b000_100_01;
5'd2: dado = 8'b101_00000;
5'd3: dado = 8'b000_000_01;
5'd4: dado = 8'b000_110_00;
5'd5: dado = 8'b101_00101;

default: dado = 8'd0;
endcase

endmodule
24 changes: 24 additions & 0 deletions Aula_Pratica_05/Ficheiros de Implementação/Parte 2/ROM_2.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module ROM( endereco, dado );
input [4:0] endereco;
output [7:0] dado;

reg [7:0] dado;

always @*
case (endereco)
5'd0: dado = 8'b010_100_00;
5'd1: dado = 8'b000_111_10;
5'd2: dado = 8'b101_01000;
5'd3: dado = 8'b000_100_01;
5'd4: dado = 8'b101_00000;
5'd5: dado = 8'b000_000_01;
5'd6: dado = 8'b000_110_00;
5'd7: dado = 8'b101_00111;
5'd8: dado = 8'b000_110_00;
5'd9: dado = 8'b001_101_00;
5'd10: dado = 8'b101_01010;

default: dado = 8'd0;
endcase

endmodule
26 changes: 26 additions & 0 deletions Aula_Pratica_05/Ficheiros de Implementação/Parte 2/ROM_3.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module ROM( endereco, dado );
input [4:0] endereco;
output [7:0] dado;

reg [7:0] dado;

always @*
case (endereco)
5'd0: dado = 8'b001_100_00;
5'd1: dado = 8'b100_000_00;
5'd2: dado = 8'b100_000_00;
5'd3: dado = 8'b100_000_00;
5'd4: dado = 8'b100_000_00;
5'd5: dado = 8'b100_000_00;
5'd6: dado = 8'b100_000_00;
5'd7: dado = 8'b100_000_00;
5'd8: dado = 8'b100_000_00;
5'd9: dado = 8'b101_01011;
5'd10: dado = 8'b101_00000;
5'd11: dado = 8'b000_100_01;
5'd12: dado = 8'b101_00000;

default: dado = 8'd0;
endcase

endmodule
19 changes: 19 additions & 0 deletions Aula_Pratica_05/Ficheiros de Implementação/Parte 2/ROM_4.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module ROM( endereco, dado );
input [4:0] endereco;
output [7:0] dado;

reg [7:0] dado;

always @*
case (endereco)
5'd0: dado = 8'b000_100_00;
5'd1: dado = 8'b110_100_00;
5'd2: dado = 8'b101_00000;
5'd3: dado = 8'b000_001_00;
5'd4: dado = 8'b010_101_01;
5'd5: dado = 8'b101_00000;

default: dado = 8'd0;
endcase

endmodule
File renamed without changes.
Binary file added Aula_Pratica_05/Guiões/LSDI2015_lab5_2_guiao.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.

0 comments on commit 091fc7a

Please sign in to comment.