Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyuichi committed Mar 21, 2015
1 parent 8d2a57c commit ab16097
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 26 deletions.
4 changes: 2 additions & 2 deletions alu.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ architecture behavioral of alu is

begin

comb : process(r, alu_in)
comb : process(r, alu_in) is

variable v : reg_type;

Expand Down Expand Up @@ -104,7 +104,7 @@ begin

end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
4 changes: 2 additions & 2 deletions cpu.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ architecture Behavioral of cpu is

begin

comb : process(r, cpu_in)
comb : process(r, cpu_in) is
variable v : reg_type;

-- decode
Expand Down Expand Up @@ -768,7 +768,7 @@ begin
cpu_out.data_l <= r.d.data_l;
end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
4 changes: 2 additions & 2 deletions dcache.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ architecture Behavioral of dcache is

begin

comb : process(r, dcache_in)
comb : process(r, dcache_in) is
variable v : reg_type;

variable miss : std_logic;
Expand Down Expand Up @@ -387,7 +387,7 @@ begin
dcache_out.ram_we <= r.ram_we;
end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
4 changes: 2 additions & 2 deletions fpu.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ begin
A => A,
Q => q_fsqrt);

comb : process(r, fpu_in, q_fadd, q_fsub, q_fmul, q_f2i, q_i2f, q_floor, q_fsqrt, q_finv)
comb : process(r, fpu_in, q_fadd, q_fsub, q_fmul, q_f2i, q_i2f, q_floor, q_fsqrt, q_finv) is
variable v : reg_type;
begin

Expand Down Expand Up @@ -231,7 +231,7 @@ begin

end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
2 changes: 1 addition & 1 deletion hardware/BlockRAM.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ architecture behavioral of blockram is

begin

process(clk)
process(clk) is
begin
if rising_edge(clk) then
if we = '1' then
Expand Down
1 change: 1 addition & 0 deletions hardware/RS232C.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ architecture Behavioral of rs232c is
-- 77 MHz / 230400 bps = 0x014E
-- 88 MHz / 230400 bps = 0x017D
-- 93 MHz / 230400 bps = 0x0193
-- 96 MHz / 230400 bps = 0x01A0

constant wtime : std_logic_vector(15 downto 0) := x"0193";

Expand Down
4 changes: 2 additions & 2 deletions hardware/Rx.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ begin
start := true;
end process;

process(clk)
process(clk) is
variable c : character;
type ft is file of character;
file input_file : ft open READ_MODE is input_filename;
Expand Down Expand Up @@ -57,7 +57,7 @@ architecture Behavioral of Rx is

begin

process(clk)
process(clk) is
begin
if rising_edge(clk) then
if done = '1' then
Expand Down
2 changes: 1 addition & 1 deletion hardware/Tx.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ begin

busy <= '1' when state /= -1 else '0';

process(clk)
process(clk) is
begin
if rising_edge(clk) then
case state is
Expand Down
2 changes: 1 addition & 1 deletion hardware/sram.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ architecture Behavioral of sram is

begin

process(clk)
process(clk) is
begin
if rising_edge(clk) then
we1 <= sram_in.we;
Expand Down
4 changes: 2 additions & 2 deletions icache.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ architecture Behavioral of icache is

begin

comb : process(r, icache_in)
comb : process(r, icache_in) is
variable v : reg_type;

variable miss : std_logic;
Expand Down Expand Up @@ -275,7 +275,7 @@ begin
icache_out.ram_addr <= r.ram_addr;
end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
4 changes: 2 additions & 2 deletions ram.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ begin
sram_in.we <= ram_in.we1 when state = M1 else ram_in.we2;
sram_in.tx <= ram_in.data1 when state = M1 else ram_in.data2;

process(state, ram_in)
process(state, ram_in) is
variable v : state_type;
begin
v := state;
Expand All @@ -60,7 +60,7 @@ begin
statein <= v;
end process;

process(clk, rst)
process(clk, rst) is
begin
if rst = '1' then
state <= M1;
Expand Down
2 changes: 1 addition & 1 deletion rom.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ architecture behavioral of rom is

begin

process(clk)
process(clk) is
begin
if rising_edge(clk) then
addr_reg1 <= rom_in.addr1;
Expand Down
7 changes: 4 additions & 3 deletions timer.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ architecture Behavioral of timer is
-- 0.01 ms * 77.77 MHz = 0xBDDE4
-- 0.01 ms * 88.88 MHz = 0xD8FE0
-- 0.01 ms * 93.33 MHz = 0xE3DB4
constant tick : std_logic_vector(19 downto 0) := x"E3DB4";
-- 0.01 ms * 96.29 MHz = 0xEB154
constant tick : std_logic_vector(19 downto 0) := x"EB154";

type reg_type is record
count : std_logic_vector(19 downto 0);
Expand All @@ -37,7 +38,7 @@ architecture Behavioral of timer is

begin

comb : process(r, timer_in)
comb : process(r, timer_in) is
variable v : reg_type;
begin
v := r;
Expand All @@ -58,7 +59,7 @@ begin
timer_out.int_go <= r.int_go;
end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down
6 changes: 3 additions & 3 deletions top.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ begin -- architecture Behavioral

dcm : DCM_BASE
generic map (
clkfx_divide => 5,
clkfx_multiply => 7)
clkfx_divide => 9,
clkfx_multiply => 13)
port map (
rst => not xrst,
clkin => iclk,
Expand Down Expand Up @@ -108,7 +108,7 @@ begin -- architecture Behavioral

rst <= (not XRST) when count > 100000 else '1';

process(clk)
process(clk) is
begin
if rising_edge(clk) then
if count <= 100000 then
Expand Down
4 changes: 2 additions & 2 deletions uart.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ begin

-- WRITE

comb : process(r, uart_in, tx_busy, rx_ready, rx_dat)
comb : process(r, uart_in, tx_busy, rx_ready, rx_dat) is
variable v : reg_type;

variable v_din : std_logic_vector(31 downto 0);
Expand Down Expand Up @@ -168,7 +168,7 @@ begin
uart_out.int_go <= to_std_logic(v.rx_len /= 0);
end process;

regs : process(clk, rst)
regs : process(clk, rst) is
begin
if rst = '1' then
r <= rzero;
Expand Down

0 comments on commit ab16097

Please sign in to comment.