chapter1 #1

Merged
pavel merged 4 commits from chapter1 into master 2026-07-11 00:28:57 +03:00
2 changed files with 3825 additions and 2 deletions
Showing only changes of commit 11424be3d3 - Show all commits

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
//single_port_ram_single_clk
//single_port_ram_single_clk_v2
module chapter1
#(parameter DATA_WIDTH=8, parameter ADDR_WIDTH=5)
(input clk, we,
@ -13,6 +13,7 @@ module chapter1
begin
if (we)
ram[address] <= data_in; //write
else
data_out <= ram[address]; //read
end
endmodule